public function testListCombinedWithText() { $text = <<<TESTLIST * foo * bar baz TESTLIST; $this->assertEquals('<p><ul><li>foo</li><li>bar</li></ul>baz</p>', $this->_markup->render($text)); }
public function testXssInImgAndUrl() { $this->assertEquals('<a href="http://google.com/"<script>alert(1)</script>">...</a>', $this->_markup->render('[url=\'http://google.com/"<script>alert(1)</script>\']...[/url]')); $this->assertEquals('<img src="http://google.com/&quot;&lt;script&gt;alert(1)&lt;/script&gt;" alt="/script&gt;" />', $this->_markup->render('[img]http://google.com/"<script>alert(1)</script>[/img]')); }