X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2FText%2FWiki%2FRender%2FXhtml%2FCode.php;h=f95267c4bfb5e900a22e1fe15ff6b66c669652b4;hb=HEAD;hp=306c3e43708794938aa8ec58d5f5e7437828e7e5;hpb=6855525e48fad5de270500a5445c4f4ff85d8bda;p=diogenes.git diff --git a/include/Text/Wiki/Render/Xhtml/Code.php b/include/Text/Wiki/Render/Xhtml/Code.php index 306c3e4..f95267c 100644 --- a/include/Text/Wiki/Render/Xhtml/Code.php +++ b/include/Text/Wiki/Render/Xhtml/Code.php @@ -84,7 +84,7 @@ class Text_Wiki_Render_Xhtml_Code extends Text_Wiki_Render { // convert entities. $text = str_replace("\t", " ", $text); $text = "\n$text\n"; - $text = htmlentities($text); + $text = htmlentities($text, ENT_COMPAT | ENT_HTML401, "ISO-8859-1"); $text = "$text"; } else { @@ -92,11 +92,11 @@ class Text_Wiki_Render_Xhtml_Code extends Text_Wiki_Render { // convert tabs to four spaces, // convert entities. $text = str_replace("\t", " ", $text); - $text = htmlentities($text); + $text = htmlentities($text, ENT_COMPAT | ENT_HTML401, "ISO-8859-1"); $text = "$text"; } return "\n$text\n\n"; } } -?> \ No newline at end of file +?>