Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit b1da709

Browse files
authored
Fixing variable names, now working with v2.5.12
1 parent 7d2bf20 commit b1da709

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/syntax_highlight.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// Converting kirbytext to an HTML document
1818
// See https://secure.php.net/manual/en/class.domdocument.php
1919
$html = new DOMDocument();
20-
$html->loadHTML($text, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
20+
$html->loadHTML($value);
2121

2222
// Retrieving all `pre` elements inside our newly created HTML document
2323
// See https://secure.php.net/manual/en/class.domxpath.php & https://en.wikipedia.org/wiki/XPath
@@ -30,7 +30,7 @@
3030
}
3131

3232
// Saving all changes
33-
$text = $html->saveHTML();
33+
$value = $html->saveHTML();
3434

3535

3636
/*

0 commit comments

Comments
 (0)