|Keep It Simple, Stupid|
How to remove HTML tags from textby nejcPirc (Acolyte)
|on Feb 04, 2005 at 11:35 UTC||Need Help??|
nejcPirc has asked for the
wisdom of the Perl Monks concerning the following question:
Hello perl monks,
Can you explain me how to filter text data which i get from my form...
With my CGI I colect data from my form(textarea for example)...
Now i have colected data in my $data='abcd efgh<img src="http://test.com/image.gif">ijklmn';
Now I would like to use some filter to clear out HTML TAGS like "<img src="http://test.com/image.gif">" from my $data, so on the end it shoul contain no html tags, only text: $data='abcd efgh ijklmn';
Thanks a lot, Nejc