|
First of all, language attribute is deprecated. Use type="text/javascript" instead. Likewise, don't wrap your script in a comment as xml compliant browsers shouldn't parse comments even though they doesn't have to discard them.
As for the real problem, you can take multiple approaches to this:
- Use an external file instead.
- Escape &<>" with &<>" in the script (and suffer the browser incompatibilities this leads to).
- Use <![CDATA[ ...script contents... ]]> to allow any characters inside the script element
Last edited by liorean; 11-07-2005 at 11:19 PM..
|