Парсится только текст описания.
Вставил туда:
public function ParsDescription($ht, $key, $point, $place) {
$text = '';
if (!empty($key) and strlen($ht) > 500) {
$key = str_replace('"', '"',$key);
$key = str_replace('<', '<',$key);
$key = str_replace('>', '>',$key);
$key = str_replace('&', '&',$key);
$k = explode(",", $key);
if (empty($k[0]) or empty($k[1])) {
$err = " Product description keyword error \n";
$this->adderr($err);
return $text;
}
$text = $this->Parsing($ht, $k, $point, $place);
$text = str_replace('Описание', '', $text);
$text = str_replace('Description', '', $text);
$text = preg_replace('/<p.*?>/','<p>',$text);
$text = preg_replace('/<P.*?>/','<P>',$text);
$text = str_replace('<h2>', '<br><strong>', $text);
$text = str_replace('</h2>', '</strong><br><br>', $text);
$text = str_replace('<h3>', '<br><br><strong>', $text);
$text = str_replace('</div>', '</div><br>', $text);
$text = str_replace('</h3>', '</strong><br><br>', $text);
$text = strip_tags($text, '<p><em><i><br><li><ul><tbody><table><img><tr><td><i><b><strong>');
$text = str_replace('<p></p>', '', $text);
$text = str_replace('<strong></strong>', '', $text);
$text = str_replace('&', '&',$text);
$text = str_replace(' ', ' ',$text);
$posa = strrpos($text, "<!--");
if ($posa) $text = substr($text, 0, $posa);