208 |
} |
} |
209 |
|
|
210 |
function ampersand($str) { |
function ampersand($str) { |
211 |
$str = str_replace("&", "&", $str); |
$str = str_replace("&", "&", $str); |
212 |
$str = eregi_replace("&(#x?[0-9a-f]+;)", "&\\1", $str); |
$str = eregi_replace("&(#x?[0-9a-f]+;)", "&\\1", $str); |
213 |
$str = eregi_replace("&([a-z][a-z0-9]+;)", "&\\1", $str); |
$str = eregi_replace("&([a-z][a-z0-9]+;)", "&\\1", $str); |
214 |
|
return $str; |
|
return $str; |
|
215 |
} |
} |
216 |
|
|
217 |
function printAllowedHTML() { |
function printAllowedHTML() { |