Quote:
Originally Posted by Fugler
Hi. I was just wondering. When you're making your own thing like a guestbook or something like that, how do you going about allowing or disallowing HTML in the forms in order to prevent bad input?
Any help is much appreciated.
|
PHP Code:
$converted = htmlspecialchars($original);
If your page is powered by vB, use htmlspecialchars_uni() which specifically supports Unicode.