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 reply to Re^3: How to remove HTML tags from text
by cLive ;-)
in thread How to remove HTML tags from text
by nejcPirc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |