Bug #14868 » bug_1292_2.patch
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;
|
||
}
|
||
/**
|
- « Previous
- 1
- 2
- 3
- 4
- Next »