missing  

ml <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.