diff --git a/ecrire/inc_spip_sax.php b/ecrire/inc_spip_sax.php index ab3337650a386fa6fe01cb9f9ee9b59e286f54b0..cd208c479aef6048e60fd875c82e8418b2ba9518 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; } }