summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/Sanitizer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Sanitizer.php b/classes/Sanitizer.php
index a7bea9e5f..7af92f249 100644
--- a/classes/Sanitizer.php
+++ b/classes/Sanitizer.php
@@ -72,7 +72,7 @@ class Sanitizer {
$res = trim($str); if (!$res) return '';
$doc = new DOMDocument();
- $doc->loadHTML('<?xml encoding="UTF-8">' . $res);
+ $doc->loadHTML('<meta charset="UTF-8">' . $res);
$xpath = new DOMXPath($doc);
// is it a good idea to possibly rewrite urls to our own prefix?