IE does not know about '
[platal.git] / include / platal / smarty.plugins.inc.php
index 4c79fd1..b49132e 100644 (file)
@@ -32,7 +32,7 @@
 function escape_html($string)
 {
     if(is_string($string)) {
-       $transtbl = Array('<' => '&lt;', '>' => '&gt;', '"' => '&quot;', '\'' => '&apos;');
+       $transtbl = Array('<' => '&lt;', '>' => '&gt;', '"' => '&quot;', '\'' => '&#39;');
        return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,4};)/", "&amp;" , strtr($string, $transtbl));
     } else {
        return $string;