protected function _htmlHandling() { $aTagTexts = $this->_splitTagText($this->_oString->get(), true, true); if ($aTagTexts['texts']) { $iFirstKey = ArrayHelper::firstKey($aTagTexts['texts']); if ($this->_sCharList !== null) { $aTagTexts['texts'][$iFirstKey] = ltrim($aTagTexts['texts'][$iFirstKey], $this->_sCharList); } else { $aTagTexts['texts'][$iFirstKey] = ltrim($aTagTexts['texts'][$iFirstKey]); } $this->_oString->setString(implode('', self::_coordinatingMerge($aTagTexts['tags'], $aTagTexts['texts']))); } return $this->_oString; }
protected function _chunkHtmlHandling() { if ($this->_aTagTexts['texts']) { $iFirstKey = ArrayHelper::firstKey($this->_aTagTexts['texts']); if (0 !== mb_strpos($this->_aTagTexts['texts'][$iFirstKey], $this->_sStartValue, 0, $this->_oString->getEncoding())) { self::_prependInFirstElement($this->_aTagTexts['texts'], $this->_sStartValue); } } else { if ($this->_aTagTexts['tags']) { self::_prependInFirstElement($this->_aTagTexts['tags'], $this->_sStartValue); } else { return $this->_oString->setString($this->_sStartValue); } } return $this->_oString->setString(self::_getMergedTagTexts(true)); }