From: x2000habouzit Date: Fri, 14 Oct 2005 11:20:06 +0000 (+0000) Subject: IE does not know about ' X-Git-Tag: xorg/0.9.9~104 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c1714ff55cd7eb08d88a213e9e981757e49ee604;p=platal.git IE does not know about ' git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@101 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/platal/smarty.plugins.inc.php b/include/platal/smarty.plugins.inc.php index 4c79fd1..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;