From e09e00276a6b5c62692a0077d3e321abea244d6c Mon Sep 17 00:00:00 2001 From: Eric Heikes Date: Sat, 19 Aug 2017 12:14:47 -0500 Subject: [PATCH] Also convert HTML entities in hexadecimal format. --- toreadapi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toreadapi.php b/toreadapi.php index 8532336..2063869 100644 --- a/toreadapi.php +++ b/toreadapi.php @@ -188,7 +188,7 @@ function getEntry() { } $decodedTitle = html_entity_decode($item['title']); - $decodedTitle = preg_replace_callback("/&#[0-9]+;/", function($m) { + $decodedTitle = preg_replace_callback("/&#(x?)[0-9]+;/", function($m) { return mb_convert_encoding($m[0], 'UTF-8', 'HTML-ENTITIES'); }, $decodedTitle);