From 671f4cee657f36881eeeea7e5d314034252e3ee7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 21 Mar 2019 21:08:02 +0300 Subject: domdocument: remove old meta charset unicode hacks, replace with shorter xml preamble utf8 hack (on loadhtml where it makes sense) af_readability: better (?) charset hack for non-unicode pages --- plugins/af_fsckportal/init.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/af_fsckportal/init.php') diff --git a/plugins/af_fsckportal/init.php b/plugins/af_fsckportal/init.php index 0fa58e9ed..04b77a15a 100644 --- a/plugins/af_fsckportal/init.php +++ b/plugins/af_fsckportal/init.php @@ -19,11 +19,7 @@ class Af_Fsckportal extends Plugin { $doc = new DOMDocument(); - $charset_hack = ' - - '; - - @$doc->loadHTML($charset_hack . $article["content"]); + @$doc->loadHTML('' . $article["content"]); if ($doc) { $xpath = new DOMXPath($doc); -- cgit v1.2.3-54-g00ecf