Preserved Topic: "&&" as part of data (for XHTML)... (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 02-05-2002 19:23
Greets! |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-05-2002 19:39
In XHTML, even in script or style tags, ampersands (& mark the beginning of an entity, such as <, or ". So you have to either replace those with &&, or put the script in an outside file (recommended, since the first thing will confuse many older browsers). See http://www.w3.org/TR/xhtml1/ (sections 4.8 and C.4). |
Bipolar (III) Inmate From: USA! USA! USA! |
posted 02-05-2002 19:43
you should wrap stuff like that in CDATA brackets: code: <![CDATA[ ... ]]>
|