missing  

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   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 UTC