Skip to content

Commit 62034f2

Browse files
committed
bugfixes, closes #17 & #19
1 parent ddf6574 commit 62034f2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tobimori/kirby-seo",
33
"description": "The ultimate Kirby SEO toolkit",
44
"type": "kirby-plugin",
5-
"version": "0.3.1",
5+
"version": "0.3.2",
66
"license": "MIT",
77
"homepage": "https://github.com/tobimori/kirby-seo#readme",
88
"authors": [

config/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
if ($model instanceof Page) {
3636
$page = $model->render();
3737
$dom = new DOMDocument();
38-
$dom->loadHTML(htmlspecialchars_decode(iconv('UTF-8', 'ISO-8859-1', htmlentities($page, ENT_COMPAT, 'UTF-8')), ENT_QUOTES), libxml_use_internal_errors(true));
38+
$dom->loadHTML(htmlspecialchars_decode(mb_convert_encoding(htmlentities($page, ENT_COMPAT, 'UTF-8'), 'ISO-8859-1', 'UTF-8'), ENT_QUOTES), libxml_use_internal_errors(true));
3939

4040
$xpath = new DOMXPath($dom);
4141
$headings = $xpath->query('//h1|//h2|//h3|//h4|//h5|//h6');

0 commit comments

Comments
 (0)