52 |
'\$allowed,false)?"\1":HTMLSpecialChars("\1")', $str); |
'\$allowed,false)?"\1":HTMLSpecialChars("\1")', $str); |
53 |
$str = preg_replace('/(\<\s*A\b)/i', '\\1 target=_blank class=more', $str); |
$str = preg_replace('/(\<\s*A\b)/i', '\\1 target=_blank class=more', $str); |
54 |
$str = preg_replace('/(\<\s*TABLE\b)/i', '\\1 class=normal', $str); |
$str = preg_replace('/(\<\s*TABLE\b)/i', '\\1 class=normal', $str); |
55 |
$str = preg_replace('/(class=normal)( class=normal)+/', '\\1', $str); |
$str = preg_replace('/(class=[^ ]+)( class=[^ ]+)+/', '\\1', $str); |
56 |
$str = my_replace($str, "<TABLE", "/TABLE>"); |
$str = my_replace($str, "<TABLE", "/TABLE>"); |
57 |
$str = my_replace($str, "<UL", "/UL>", true); |
$str = my_replace($str, "<UL", "/UL>", true); |
58 |
$str = my_replace($str, "<OL", "/OL>"); |
$str = my_replace($str, "<OL", "/OL>"); |