I've seen this topic somewhere in this forum, but I can't find it.
How do I rip off HTML tags from the data that user submitted, or at least detect HTML tags or parts of HTML tags.
Some users might try to submit something like:
</a><img scr=\"http://url.com/junk.jpg\">
or
\"><h1>Unwanted stuff</h1>
or even a whole HTML document. I need to prevent it for well known reasons.
Thank you in advance.
Pasha
------------------
webmaster@find.virtualave.net
http://find.virtualave.net
How do I rip off HTML tags from the data that user submitted, or at least detect HTML tags or parts of HTML tags.
Some users might try to submit something like:
Code:
</a><img scr=\"http://url.com/junk.jpg\">
or
Code:
\"><h1>Unwanted stuff</h1>
or even a whole HTML document. I need to prevent it for well known reasons.
Thank you in advance.
Pasha
------------------
webmaster@find.virtualave.net
http://find.virtualave.net