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
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to remove HTML tags from text
by skx (Parson) on Feb 04, 2005 at 12:10 UTC | |
by nejcPirc (Acolyte) on Feb 04, 2005 at 12:16 UTC | |
Re: How to remove HTML tags from text
by gellyfish (Monsignor) on Feb 04, 2005 at 12:22 UTC | |
by holli (Abbot) on Feb 04, 2005 at 13:01 UTC | |
Re: How to remove HTML tags from text
by pelagic (Priest) on Feb 04, 2005 at 11:48 UTC | |
by nejcPirc (Acolyte) on Feb 04, 2005 at 11:54 UTC | |
by pelagic (Priest) on Feb 04, 2005 at 12:17 UTC | |
by cLive ;-) (Prior) on Feb 05, 2005 at 00:00 UTC | |
Re: How to remove HTML tags from text
by xdg (Monsignor) on Feb 04, 2005 at 16:18 UTC |
Back to
Seekers of Perl Wisdom