note 19764 deleted from ref.xslt by irc-html
| From: | irc-html@php.net | Date: | Mon, 22 Apr 2002 19:52:07 +0000 |
| Subject: | note 19764 deleted from ref.xslt by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29695@lists.php.net to get a copy of this message | ||
I had problems parsing an xml-source which has a script-section (<script
language="javascript">...</script>).
When having < and > comparision in the script, for example:
...
<script language="javascript">
if(a < b) {
...
}
</script>
...
the parser terminates with an error in the line where the '<' occurs.
Well, there's quite an easy way to avoid that: Just put the javascript-code into a comment
block (<!-- .. -->), like often done to hide javascript-code from older browsers. The parser
will ignore the contents...
Probably the same applies to <style> </style> sections of code.