?: How can I remove
< and >
tags, and everything inside, in php forms?
?
Do you mean, how can you strip a variable of html characters? If so, that's easy. 🙂
htmlspecialchars($var);
It'll get rid of < > and stuff. 🙂
htmlspecialchars() will display the html tags (by turning < and > into the html entities).
to remove tags completely, use strip_tags() http://www.php.net/manual/en/function.strip-tags.php