Skip to content

Commit

Permalink
Fix encoding error
Browse files Browse the repository at this point in the history
  • Loading branch information
aledeg committed Oct 4, 2022
1 parent 4fc9a03 commit 4cebb3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Transformer/DisplayTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function getPreprocessedContent($content) {
}

$dom = new \DomDocument('1.0', 'UTF-8');
$dom->loadHTML(mc_convert_encoding($preprocessed, 'HTML-ENTITIES', 'UTF-8'), LIBXML_NOERROR);
$dom->loadHTML($preprocessed, LIBXML_NOERROR);

$videos = $dom->getElementsByTagName('video');
foreach ($videos as $video) {
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Reddit Image",
"author": "Alexis Degrugillier",
"description": "Modify reddit entries by displaying known medias and easing access to the linked resource",
"version": "0.12.3",
"version": "0.12.4",
"entrypoint": "RedditImage",
"type": "user"
}

0 comments on commit 4cebb3e

Please sign in to comment.