mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
revert MarkdownExtra changes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -299,7 +299,7 @@ MD,
|
||||
yield 'html elements' => [
|
||||
<<<'HTML'
|
||||
<img src="https://example.com/image.jpg" alt="Image" />
|
||||
<p><div>&star;⨩™ï¸ð<&sol;div></p>
|
||||
<div>☆✨©™️😎</div>
|
||||
<p><strong>Strong ☆ ✨</strong></p>
|
||||
HTML,
|
||||
<<<'MD'
|
||||
|
||||
Reference in New Issue
Block a user