for replaceTagsCompletely modify the prex for singeltons (as we are in Ungreedy mode, so we expect * to be ungreedy without specifying ?)

This commit is contained in:
Klaus Leithoff 2012-12-04 14:20:44 +00:00
parent fffbfe65be
commit 28bf96d79a

View File

@ -982,7 +982,8 @@ class translation
if ($_body) {
if ($singleton)
{
$_body = preg_replace('~<'.$tag.'[^>].*? '.$endtag.'~simU','',$_body);
//$_body = preg_replace('~<'.$tag.'[^>].*? '.$endtag.'~simU','',$_body);
$_body = preg_replace('~<?'.$tag.'[^>].* '.$endtag.'~simU','',$_body); // we are in Ungreedy mode, so we expect * to be ungreedy without specifying ?
}
else
{