X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fplatal%2Fsmarty.plugins.inc.php;h=b49132e0c154d4f0d14707053c93bd7449ff0ecd;hb=b4315e154da87ed9afc42426523e13f00530a8a2;hp=b5b7d102be6dcd0127877060e2df6f1d011e4c32;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/include/platal/smarty.plugins.inc.php b/include/platal/smarty.plugins.inc.php index b5b7d10..b49132e 100644 --- a/include/platal/smarty.plugins.inc.php +++ b/include/platal/smarty.plugins.inc.php @@ -32,7 +32,7 @@ function escape_html($string) { if(is_string($string)) { - $transtbl = Array('<' => '<', '>' => '>', '"' => '"'); + $transtbl = Array('<' => '<', '>' => '>', '"' => '"', '\'' => '''); return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,4};)/", "&" , strtr($string, $transtbl)); } else { return $string;