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

Re: Force tidy to keep numeric character references

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 18 Feb 2007 16:19:10 +0100
To: Oswald Glinkmeyer <glink2005@gmail.com>
Cc: html-tidy@w3.org
Message-ID: <jgrgt2ltldq3ggrkoue8ncrokpjh3imhri@hive.bjoern.hoehrmann.de>

* Oswald Glinkmeyer wrote:
>I want to know if there's a setting that will prevent it from converting 
>a numeric entity into a character? For example, it seems to convert 
>"&#109;" (that is, ampersand#109; if that is filtered on this list) to 
>"m" and so forth. The -n switch converts named entities into numeric 
>entities, but with this option Tidy still converts simple numeric 
>entities to their characters, I guess if they're printable characters 
>under ascii 128. I've been looking through the docs, and while there are 
>lots of configuration and command line options 
><http://tidy.sourceforge.net/docs/quickref.html>, I can't seem to find 
>what I'm looking for.  Is this even possible?

This is not currently possible. Presumably you are trying to obfuscate
e.g. an e-mail address, in that case I would suggest to use a post-pro-
cessing script; since Tidy generates fairly regular output, a simple
regular expression search and replace should do.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Sunday, 18 February 2007 15:19:13 GMT

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