Properly fix htmlspecialchars.
[diogenes.git] / include / Text / Wiki / Parse / Default / Heading.php
index ae0f1fd..4a42e3a 100644 (file)
@@ -81,7 +81,7 @@ class Text_Wiki_Parse_Heading extends Text_Wiki_Parse {
             $id = 0;
         }
         
-        $prefix = htmlspecialchars($this->getConf('id_prefix'));
+        $prefix = htmlspecialchars($this->getConf('id_prefix'), ENT_COMPAT | ENT_HTML401, "ISO-8859-1");
         
         $start = $this->wiki->addToken(
             $this->rule, 
@@ -104,4 +104,4 @@ class Text_Wiki_Parse_Heading extends Text_Wiki_Parse {
         return $start . $matches[2] . $end . "\n";
     }
 }
-?>
\ No newline at end of file
+?>