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

tidy remove space !!!

From: Etienne SOBOLE <e.sobole@webshaker.net>
Date: Tue, 27 May 2014 15:04:37 GMT
Message-ID: <n68n7p.eyqtcs@extranet.webshaker.net>
To: html-tidy@w3.org

I'm using tidy and the PHP to clean received mails

I'm using this code.

$tidy_config = array(
 'output-xhtml' => true,
 'show-body-only' => true,
 'wrap' => 0,
$tidy = tidy_parse_string($html, $tidy_config, 'UTF8');

But tidy remove some usefull breakline (displayed as space).

If I try to clean this code:

<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;mso-fareast-language:FR">Nathalie
I will just have


The space between Nathalie and LESUEUR have bee removed.
How can I keep the space or the breakline of the original code ?


Etienne SOBOLE
Received on Wednesday, 28 May 2014 08:21:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:59 UTC