diff --git a/Tests/markdownTest.php b/Tests/markdownTest.php index 76403d2..038c160 100644 --- a/Tests/markdownTest.php +++ b/Tests/markdownTest.php @@ -334,4 +334,18 @@ end")); line2 line3.")); } + + public function testHTMLSpecialChars1 () + { + $this->expectOutputString("

toto&titi

"); + $md = new markdown (); + printf ($md->html ("toto&titi")); + } + + public function testHTMLSpecialChars2 () + { + $this->expectOutputString("

totoétiti

"); + $md = new markdown (); + printf ($md->html ("totoétiti")); + } }