W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2001

removing &nbsp

From: Erik Tan <eriktan@dingoblue.net.au>
Date: Mon, 14 May 2001 12:30:49 +1000
Message-ID: <000a01c0dc1d$e48ecce0$7b00a8c0@agent98>
To: <html-tidy@w3.org>
Hello,,
   i am trying to converting an html document to xml. In the intial, my document conversion was fine until when i used XT parser to parse the resulting xml ouput . I have the obtained the following error.

    xml:154: reference to undefined entity "nbsp"


   I have following setting in the jtidy-04aug2000r6/src/org/w3c/tidy/

# sample config file for Java HTML tidy
indent=auto
indent-spaces=3
wrap=72
markup=yes
clean=yes
output-xml=no
input-xml=no
show-warnings=yes
numeric-entities=yes
quote-marks=yes
quote-nbsp=no
quote-ampersand=yes
break-before-br=no
uppercase-tags=yes
uppercase-attributes=yes
smart-indent=yes
output-xhtml=yes
char-encoding=latin1

I want to know is there a way not by HTMLTidy or that will no prevent the &nbsp from printing out to the output file...

Help is greatly and pointers from all of your all is greatly appericated.


Yours Sincerely

Erik Tan
Received on Sunday, 13 May 2001 22:26:36 GMT

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