At 5/7/09 01:10 PM, Loccie wrote:
I don't understand the need for strip_tags(). I mean, don't all the tags get converted by htmlentities() to normal text?
Yes they do, if you use htmlentities(), there's no need for strip_tags(). Strip_tags() only removes stuff like: <script> (which will then already be turned into normal text).
strip_tags() also makes it impossible for somebody to post code for other people to view, since the entire content between the tags will also be stripped.