| Code: |
$AllowableHTML = array(
"b" => 1,
"i" => 1,
"strike" => 1,
"div" => 2,
"u" => 1,
"a" => 2,
"em" => 1,
"br" => 1,
"strong" => 1,
"blockquote" => 1,
"tt" => 1,
"li" => 1,
"ol" => 1,
"ul" => 1,
"img" => 2,
"p" => 2,
"font" => 2,
"h1" => 2,
"h2" => 2,
"h3" => 2,
"table" => 2,
"tr" => 1,
"td" => 2,
"th" => 2,
"tbody" => 1
); |
| Code: |
| $str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">', $str); |