From 709561bdc4d5c9d51b6746ffd53af6f141a93a0c Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Thu, 7 Jul 2005 09:15:50 +0000 Subject: [PATCH] retranscoder l'apostrophe dans les attributs --- ecrire/inc_spip_sax.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ecrire/inc_spip_sax.php b/ecrire/inc_spip_sax.php index ab3337650a..cd208c479a 100644 --- a/ecrire/inc_spip_sax.php +++ b/ecrire/inc_spip_sax.php @@ -43,8 +43,8 @@ function debutElement($parser, $name, $attrs) $sep = ' '; foreach ($attrs as $k => $v) { $delim = strpos($v, "'") === false ? "'" : '"'; - $att .= $sep . $k . "=" . $delim . - $phraseur_xml->translate_entities($v) + $att .= $sep . $k . "=" . $delim + . str_replace('"', '"', $phraseur_xml->translate_entities($v)) . $delim; $sep = "\n $depth"; } @@ -96,7 +96,6 @@ function PiElement($parser, $target, $data) eval($data); $data = ob_get_contents(); ob_end_clean(); - // xml_parse($xml_parser, $data); // pas si simple $contenu[$depth] .= $data; } } -- GitLab