From c7c6f08124461b5b114b638637ef41f093aa8115 Mon Sep 17 00:00:00 2001
From: ARNO* <arno@rezo.net>
Date: Tue, 5 Apr 2005 12:04:19 +0000
Subject: [PATCH] Pas d'option "clean", qui change trop le contenu des pages.

---
 ecrire/inc_tidy.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ecrire/inc_tidy.php b/ecrire/inc_tidy.php
index dc9947ab07..08d854776f 100644
--- a/ecrire/inc_tidy.php
+++ b/ecrire/inc_tidy.php
@@ -87,13 +87,16 @@ function xhtml ($buffer) {
 		fputs($f, $buffer);
 		fclose($f);
 		
-		exec("$tidy_command --char-encoding $enc_char --quote-nbsp false --show-body-only false --clean true --indent true --wrap false --output-xhtml true --add-xml-decl false -m $nomfich");
+		exec("$tidy_command --char-encoding $enc_char --quote-nbsp false --show-body-only false --indent true --wrap false --output-xhtml true --add-xml-decl false -m $nomfich");
 		
 		$tidy = join(file($nomfich),"");
 		@unlink($nomfich);
 		
 		$tidy = echappe_retour($tidy, $les_echap, "xhtml");
 		$tidy = ereg_replace ("\<\?xml([^\>]*)\>", "", $tidy);
+		//$tidy = ereg_replace ("\/\*\<\!\[CDATA\[\*\/\n*", "", $tidy);
+		//$tidy = ereg_replace ("\/\*\]\]>\*\/", "", $tidy);
+		
 		return $tidy;
 
 	}
-- 
GitLab