Hi,
Below is my code can you please help me to fix it.
function gw_bbcode_html($t)
{
$regexfind[] = '/\<(.+)\>/esiU';
$t = str_replace('&', '&', $t);
$t = str_replace('"', '"', $t);
$t = str_replace('&039;', '\'', $t);
$regexreplace[] = "gw_bbcode_html_tag(gw_bbcode_htmlspecialchars('\\1'))";
$t = preg_replace_callback($regexfind, $regexreplace, $t);
# $t = str_replace('&#', '&#', $t);
$t = str_replace('![cdata', '![CDATA', $t);
$t = str_replace('!doctype', '!DOCTYPE', $t);
$t = str_replace("\t", '       ', $t);
$t = str_replace("\n", '<br />', $t);
$t = str_replace(' ', '  ', $t);
return $t;
}