http://qs1969.pair.com?node_id=428015

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