Project

General

Profile

Bug #14868 » bug_1292_2.patch

Administrator Admin, 2005-11-08 22:22

View differences:

TYPO3core_patch1292/t3lib/class.t3lib_parsehtml.php 2005-11-08 22:20:58.000000000 +0100
*/
function HTMLcleaner($content, $tags=array(),$keepAll=0,$hSC=0,$addConfig=array()) {
$newContent = array();
// protect HTML comments from getting cleaned
preg_replace('/<!--(.*?)-->/','###{\\1}###',$content);
$tokArr = explode('<',$content);
$newContent[] = $this->processContent(current($tokArr),$hSC,$addConfig);
next($tokArr);
......
}
}
return implode('',$newContent);
// replace markers with the according comments to preserve HTML comments (see the beginning of this function for the corresponding code)
preg_replace('/###{(.*?)}###/','<!--\\1-->',$content);
return $newContent;
}
/**
(4-4/4)