diff --git a/ecrire/inc/xml.php b/ecrire/inc/xml.php index aec3342ac635c968f5df55c3a63841c4c5edc1d3..d07a9a8b10bf4a99d400b3fab1e19f14fa66095a 100644 --- a/ecrire/inc/xml.php +++ b/ecrire/inc/xml.php @@ -73,13 +73,13 @@ function spip_xml_parse($texte, $strict=true, $clean=true){ else return $texte; // un tag qui constitue du texte a reporter dans $before } $content = $chars[0]; - $txt = $chars[2]; //trim($chars[2]); + $txt = $chars[2]; if (strpos($content,"<")===FALSE) // eviter une recursion si pas utile $out[$tag][] = $content; else $out[$tag][]=spip_xml_parse($content, $strict, false); } - $chars = preg_split("{<([^>]*?)>}ms",$txt,2,PREG_SPLIT_DELIM_CAPTURE); + $chars = preg_split("{<([^>]*?)>}s",$txt,2,PREG_SPLIT_DELIM_CAPTURE); } if (count($out)&&(strlen(trim($txt))==0)) return $out;