X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fxml%2Fsax.php;fp=www%2Fecrire%2Fxml%2Fsax.php;h=ceb97b70993a5b6f88260ec6042ed2301c0d6584;hp=35a2377485174f766648147fba81951de8a1c11a;hb=5be150361b3c836d9206941ba43f862df11466db;hpb=bca3db9e1ab94e469b01f7e994a5e095de5f88c4 diff --git a/www/ecrire/xml/sax.php b/www/ecrire/xml/sax.php index 35a2377..ceb97b7 100644 --- a/www/ecrire/xml/sax.php +++ b/www/ecrire/xml/sax.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -25,7 +25,9 @@ function xml_entites_html($texte){ OR strpbrk($texte, "&\"'<>")==false ) return $texte; - $texte = htmlspecialchars($texte,ENT_QUOTES); + if (!function_exists('spip_htmlspecialchars')) + include_spip("inc/filtres_mini"); + $texte = spip_htmlspecialchars($texte,ENT_QUOTES); return $texte; }