Heya, i have a public script where comments can be entered, i want it so if they enter HTML it will display the HTML as text and not HTML, so people dont own my comment script....
Tnx and Happy Xmas 🙂
replace < with &lt;
PM
Is there a function i can parse my variable containing my HTML through?
strip_tags() will do it for you...
you can put <XMP> tags around it.
<XMP> html code </XMP>
http://www.phpbuilder.com/manual/function.htmlspecialchars.php