Add more markdown tests

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1800 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-09-09 11:51:25 +00:00
parent 18191c5459
commit 6386af1397

View File

@@ -334,4 +334,18 @@ end"));
line2
line3."));
}
public function testHTMLSpecialChars1 ()
{
$this->expectOutputString("<p>toto&amp;titi</p>");
$md = new markdown ();
printf ($md->html ("toto&titi"));
}
public function testHTMLSpecialChars2 ()
{
$this->expectOutputString("<p>toto&eacute;titi</p>");
$md = new markdown ();
printf ($md->html ("totoétiti"));
}
}