Anyone can give me a simple algorithm to remove a html tags from a let's say a variable named $notes....
Feb 8, 1999, 3:36 AM
User (134 posts)
Feb 8, 1999, 3:36 AM
Post #3 of 3
Views: 4727
I strongly agree with Mark, because I tried to reinvent the wheel already, only to find out it was being used by everyone around me. Here is a same snippet for you to try:
$p = HTML::Parser->new;
$p->parse($notes); # parse the HTML in notes
$p->eof; # signal end of parse file
print $p->as_string; # print out the parsed textHope this helps
------------------
Fred Hirsch
Web Consultant & Programmer
Code:
use HTML::Parser; $p = HTML::Parser->new;
$p->parse($notes); # parse the HTML in notes
$p->eof; # signal end of parse file
print $p->as_string; # print out the parsed text
------------------
Fred Hirsch
Web Consultant & Programmer