#', $body)) {
$pIndex++;
preg_match('#
(.*)?<\/p>#iUs', $body, $p);
$body = preg_replace('#
#iUs', "_-p-_{$pIndex}", $body, 1);
$body = preg_replace('#
#iUs', "{$pIndex}_-/p-_", $body, 1);
$contentP = $ln;
$this->_list = array();
if (intval($pIndex % 2) > 0) {
$contentP = $this->leftContent($p[2], $ln, $pIndex);
} else {
$contentP = $this->rightContent($p[2], $ln, $pIndex);
}
$body = preg_replace('#\_\-p\-\_' . $pIndex . '(.*)' . $pIndex . '\_\-\/p\-\_#iUs', '_-p-_ ' . $contentP . ' _-/p-_', $body);
} */ elseif (preg_match('##', $body)) {
$body = preg_replace('##', "_-/p-_ \n$ln ", $body, 1);
} elseif (preg_match('##', $body)) {
$body = preg_replace('##iUs', "_-span-_ $ln ", $body, 1);
} elseif (preg_match('##', $buffer)) {
$body = preg_replace('##iUs', "_-li-_ $ln ", $body, 1);
} elseif (preg_match('##', $buffer)) {
$body = preg_replace('##iUs', "_-lo-_ $ln ", $body, 1);
} elseif (preg_match('##', $body)) {
$body = preg_replace('##', "_-b-_ $ln ", $body, 1);
} elseif (preg_match('##', $buffer)) {
$body = preg_replace('##', "_-u-_ $ln ", $body, 1);
} elseif (preg_match('#
#', $buffer)) {
$body = preg_replace('#
#iUs', " $ln ", $body, 1);
} elseif (preg_match('##', $buffer)) {
$body = preg_replace('##', "_-strong-_ $ln ", $body, 1);
} elseif (preg_match('##iUs', $buffer)) {
$body = preg_replace('##iUs', "\n$ln ", $body, 1);
}
}
$body = str_replace('_-', '<', $body);
$body = str_replace('-_', '>', $body);
if (!empty($this->_ankorPlace)) {
foreach ($this->_ankorPlace as $index => $ancor) {
$body = preg_replace('#\{ANCORPLACE' . $index . '}#', $ancor, $body);
}
}
$body = $this->_findAndReplaceAPlace($body);
$buffer = str_replace($this->_getBodyContent($buffer), $body, $buffer);
} else {
$this->toLog('optimization', 'empty body');
$this->_backAncorToFree();
}
} else {
$this->toLog('optimization', 'empty ancor');
}
}
return $buffer;
}
}