revert MarkdownExtra changes

This commit is contained in:
Ion Bazan
2024-11-03 17:53:55 +08:00
parent 4ebbfbd0f5
commit 55a569a259
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -553,7 +553,7 @@ class MarkdownExtra extends Markdown
$DOMDocument = new DOMDocument();
// http://stackoverflow.com/q/11309194/200145
$elementMarkup = htmlentities((string) $elementMarkup, ENT_QUOTES | ENT_HTML5, 'UTF-8');
$elementMarkup = mb_convert_encoding((string) $elementMarkup, 'HTML-ENTITIES', 'UTF-8');
// http://stackoverflow.com/q/4879946/200145
$DOMDocument->loadHTML($elementMarkup);
+1 -1
View File
@@ -299,7 +299,7 @@ MD,
yield 'html elements' => [
<<<'HTML'
<img src="https://example.com/image.jpg" alt="Image" />
<p>&lt;div&gt;&amp;star;✨©™ï¸ðŸ˜Ž&lt;&amp;sol;div&gt;</p>
<div>☆✨©™️😎</div>
<p><strong>Strong </strong></p>
HTML,
<<<'MD'