dbv
-
2011-08-14
This patch adds an option/feature to cause any script tag content to be wrapped in a "safe"[1] CDATA node, resulting in the following DOM output
<script>//<![CDATA[
...
//]]></script>
[1] As far as I can tell, this is compatible with all remotely modern browsers for html/xhtml/html5. I needed it because I have need to manipulate the parsed Document with xpath and then re-serialize. Without this patch, script tag content (such as '>') are converted to entities on output.
cheers!
Brent