in reply to Re^2: How to remove HTML tags from text
in thread How to remove HTML tags from text
nope.
A /s modifier would help a little, but doesn't solve everything. Eg, what about this tag?$data = <<_END_; <script language="JavaScript"> alert("Boo!") </script > _END_
$data = qq{ <img src="hello.jpg" alt="x>y" width="60" height="60" /> } +;
Lesson: never treat HTML parsing as a "back of an envelope" exercise :)
cLive ;-)
|
---|
In Section
Seekers of Perl Wisdom