Skip to content

Commit

Permalink
Also convert HTML entities in hexadecimal format.
Browse files Browse the repository at this point in the history
  • Loading branch information
eheikes committed Aug 19, 2017
1 parent 0f43672 commit e09e002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toreadapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e09e002

Please sign in to comment.