W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2004

Escaping previously unknown elements

From: Christophe Chenon <christophe.chenon@fr.ibm.com>
Date: Mon, 29 Nov 2004 18:05:46 +0100
To: html-tidy@w3.org
Message-ID: <OFBACD8CD2.0BF81157-ONC1256F5B.005DA4D8-C1256F5B.005DE991@fr.ibm.com>

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
Received on Monday, 29 November 2004 22:33:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:55 UTC