X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fecrire%2Fxml%2Fsax.php;h=ceb97b70993a5b6f88260ec6042ed2301c0d6584;hb=122c920eb07e3f665789f8734965b576e6c25515;hp=35a2377485174f766648147fba81951de8a1c11a;hpb=a9541742f84ce7e258d46dd8407242289ab2ec72;p=lhc%2Fweb%2Fwww.git diff --git a/www/ecrire/xml/sax.php b/www/ecrire/xml/sax.php index 35a23774..ceb97b70 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; }