note
cLive ;-)
nope.
<code>
$data = <<_END_;
<script
language="JavaScript">
alert("Boo!")
</script
>
_END_
</code>
A /s modifier would help a little, but doesn't solve everything. Eg, what about this tag?
<code>
$data = qq{ <img src="hello.jpg" alt="x>y" width="60" height="60" /> };
</code>
<p>Lesson: <b>never</b> treat HTML parsing as a "back of an envelope" exercise :)</p>
<p>cLive ;-)</p>
428015
428022