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

missing  

From: ml <ml@dasir.net>
Date: Thu, 01 Nov 2007 18:51:33 +0100
Message-ID: <472A1225.5010106@dasir.net>
To: html-tidy@w3.org

Hi!

I have following config:

bare:false
indent:false
output-html:true
doctype:transitional
hide-comments:true
wrap:0
quote-nbsp:true
quote-marks:false
quote-ampersand:true
break-before-br:false
char-encoding:raw
input-encoding:raw
output-encoding:raw

and running

$ echo 'sdf &nbsp; wer' | tidy -config cfg

results in

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1
September 2005), see www.w3.org">
<title></title>
</head>
<body>
sdf   wer
</body>
</html>

.... no "&nbsp;"

I found few threads discussing it but no solution. Tested versions are
Ubuntu package "HTML Tidy for Linux/x86 released on 1 September 2005"
and Pecl PHP Tidy 1.2.

Any suggestion to preven Tidy from removing "&nbsp;"? I need UTF-8
input/output.

Thanks.

David
Received on Friday, 2 November 2007 22:17:32 GMT

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