mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
update strip test
This commit is contained in:
@@ -39,6 +39,13 @@ class CompileStripTest extends PHPUnit_Smarty
|
|||||||
{
|
{
|
||||||
$this->assertContains('<div style="float: right; cursor: url;">[<a onmouseover="this.style.cursor=\'pointer\'" onmouseup="document.getElementById(\'screenEdit_($screen.id)\').style.display=\'none\'";>X</a>]</div>foobar', $this->smarty->fetch('strip_multi_line_html_tag.tpl'));
|
$this->assertContains('<div style="float: right; cursor: url;">[<a onmouseover="this.style.cursor=\'pointer\'" onmouseup="document.getElementById(\'screenEdit_($screen.id)\').style.display=\'none\'";>X</a>]</div>foobar', $this->smarty->fetch('strip_multi_line_html_tag.tpl'));
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* test strip tag multi line html
|
||||||
|
*/
|
||||||
|
public function testStripHtmlTag()
|
||||||
|
{
|
||||||
|
$this->assertContains('<ul><li><a href="#">BlaBla</a></li><li><a href="#">BlaBla</a></li></ul>', $this->smarty->fetch('strip_html_tag.tpl'));
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* test strip tag multi line html
|
* test strip tag multi line html
|
||||||
*/
|
*/
|
||||||
|
@@ -0,0 +1,10 @@
|
|||||||
|
{strip}
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="#">BlaBla</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#">BlaBla</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
{/strip}
|
Reference in New Issue
Block a user