I read on www.php.net... the php manual on how to use htmlspecialchars() i'm trying to eliminate some security issus so ppl can't send javascript or anyother script to the guestbook but i have run into a problem that i do not know how to solve... Maby anyone of you can? As you can see below it's the error msg and below that is the code i'm using... I'm using the latest php version so it should not be any problem... Help please
//Johan
Fatal error: Call to undefined function: _htmlspecialchars() in /home/syskonskapet/public_html/fspalt/spara.php on line 12
$text_=_htmlspecialchars($text);
$text = str_replace('>', '>', $text);
$text = str_replace('<br>', '<br>', $text);
$text = str_replace('<b>', '<b>', $text);
$text = str_replace('</b>', '</b>', $text);
$text = str_replace('<i>', '<i>', $text);
$text = str_replace('</i>', '</i>', $text);