Escaping previously unknown elements

I use tidy to XMLize a loose SGML file.... It's convenient for quoting
attribute values. In my files, there are strings of text where random
markup can appear. These markups are not considered part of the document
SGML structure : they are not in the DTD. I wish tidy would escape them..
For instance :

<comment> do not use this attribute with <a> elements.</comment>

 would become

<comment> do not use this attribute with &lt;a> element.</comment>

Is it possible to declare structural markups (those of the DTD) so that
all other markups will be escaped ?

Christophe Chenon
01 49 14 42 11 - Centre de Francisation
"Studies have shown that users prefer to use websites in their own
language."

Received on Monday, 29 November 2004 22:33:04 UTC