W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

entities -- leave them alone !

From: Carole E. Mah <carolem@mama.stg.brown.edu>
Date: Thu, 1 Feb 2001 08:31:49 -0500 (EST)
To: html-tidy@w3.org
Message-ID: <Pine.GSO.4.10.10102010828200.13748-100000@mama.stg.brown.edu>

How do I get Tidy to leave my entities alone ?

e.g., if I have an entity in my HTML doc. instance that is not recognized
by Tidy (not in entities.c), Tidy changes the ampersand to &amp;, which I
do not want it to do.  I want the entity to pass through Tidy unscathed --
i.e. it ought to leave:
  &num;
  &ast;

alone, but instead, it erroneously changes them to:
  &amp;num;
  &amp;ast;

Also, what if I want it to change a literal " in CDATA into &quot;  ??

thanks,
-carole

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Carole E. Mah                     carolem@stg.brown.edu
               Programmer/Analyst
   Brown University Scholarly Technology Group
               phn 401-863-2669
               fax 401-863-9313
            http://www.stg.brown.edu/
  personal: http://www.stg.brown.edu/~carolem/
Received on Thursday, 1 February 2001 08:31:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT