mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:15:55 +00:00
Merge branch 'master' of trap000d/tt-rss into master
This commit is contained in:
@@ -180,8 +180,12 @@ class Af_Readability extends Plugin {
|
||||
// this is the worst hack yet :(
|
||||
if (strtolower($tmpdoc->encoding) != 'utf-8') {
|
||||
$tmp = preg_replace("/<meta.*?charset.*?\/?>/i", "", $tmp);
|
||||
if (empty($tmpdoc->encoding)) {
|
||||
$tmp = mb_convert_encoding($tmp, 'utf-8');
|
||||
} else {
|
||||
$tmp = mb_convert_encoding($tmp, 'utf-8', $tmpdoc->encoding);
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
$r = new Readability(new Configuration());
|
||||
|
||||
Reference in New Issue
Block a user