mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-10 17:26:25 +02:00
[SafeScripting] disable autoclosing of <script /> tag (#198)
This commit is contained in:
committed by
Edward Z. Yang
parent
b74425bee5
commit
5a01e6535d
@ -20,7 +20,15 @@ class HTMLPurifier_HTMLModule_SafeScriptingTest extends HTMLPurifier_HTMLModuleH
|
||||
public function testGood()
|
||||
{
|
||||
$this->assertResult(
|
||||
'<script type="text/javascript" src="http://localhost/foo.js" />'
|
||||
'<script type="text/javascript" src="http://localhost/foo.js"></script>'
|
||||
);
|
||||
}
|
||||
|
||||
public function testGoodWithAutoclosedTag()
|
||||
{
|
||||
$this->assertResult(
|
||||
'<script type="text/javascript" src="http://localhost/foo.js"/>',
|
||||
'<script type="text/javascript" src="http://localhost/foo.js"></script>'
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user