Filter to remove HTML from webforms
Folks - this one would be really handy. Particularly when using webforms to gather text comments for a guest book etc. There's always someone who submits a big chunk HTML with hyperlinks and graphics etc. How could this be filtered out?
What about banning the use of the "<" and ">" characters? How could this be done? Could you somehow identify and remove these characters from whatever is submitted? This might leave you with unsightly rubbish that has to be removed. It might be better to remove everything between the "<" and the ">".
THIS is what the kids really want. Any advice gratefully received.
Many thanks.
Folks - this one would be really handy. Particularly when using webforms to gather text comments for a guest book etc. There's always someone who submits a big chunk HTML with hyperlinks and graphics etc. How could this be filtered out?
What about banning the use of the "<" and ">" characters? How could this be done? Could you somehow identify and remove these characters from whatever is submitted? This might leave you with unsightly rubbish that has to be removed. It might be better to remove everything between the "<" and the ">".
THIS is what the kids really want. Any advice gratefully received.
Many thanks.
Comments
Here's the answer...
Sorry, answered my own question. Just use the "nohtml" filter on Massimo's TMT Validator. Top stuff. Here's the link...
http://www.massimocorner.com/validator/samples/filters.htm
You must me logged in to write a comment.