- From: Andrew Clover <and-w3@doxdesk.com>
- Date: Tue, 4 Nov 2003 13:52:03 +0000
- To: www-html@w3.org
Lachlan Hunt <lhunt07@postoffice.csu.edu.au> wrote: > You should also encode the > character as > to be correct. Not necessarily. '>' is not in itself is an out-of-band character in content or attribute values. It is only special as part of the sequence ']]>'. This acts as an ending for CDATA sections. For obscure and uninteresting reasons, the sequence ']]>' should not be included in content; certainly, escaping all >s to >s is one way to avoid this. > The four entities defined in xml (< > & and ") should always > be used There's another predefined entity, too, '. Neither " nor ' have to be written as entity references in normal usage; it's only in attributes where one or the other has been used as a delimiter that this becomes required. -- Andrew Clover mailto:and@doxdesk.com http://www.doxdesk.com/
Received on Tuesday, 4 November 2003 09:08:47 UTC