Add test of escaped html comment.

This commit is contained in:
naNuke 2014-10-10 20:07:41 +02:00
parent 68f3aea036
commit 74926c9831
1 changed files with 6 additions and 0 deletions

View File

@ -109,6 +109,10 @@ paragraph
color: red;
}
</style>
comment
<!-- html comment -->
MARKDOWN_WITH_MARKUP;
$expectedHtml = <<<EXPECTED_HTML
@ -125,6 +129,8 @@ MARKDOWN_WITH_MARKUP;
color: red;
}</code></pre>
<p>&lt;/style></p>
<p>comment</p>
<p>&lt;!-- html comment --></p>
EXPECTED_HTML;
$parsedownWithNoMarkup = new Parsedown();
$parsedownWithNoMarkup->setMarkupEscaped(true);