mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 00:41:52 +00:00
32 lines
717 B
PHP
32 lines
717 B
PHP
|
<?php
|
||
|
|
||
|
require_once 'HTMLPurifier/HTMLModuleHarness.php';
|
||
|
|
||
|
class HTMLPurifier_HTMLModule_LegacyTest extends HTMLPurifier_HTMLModuleHarness
|
||
|
{
|
||
|
|
||
|
function test() {
|
||
|
|
||
|
// max
|
||
|
$this->assertResult(
|
||
|
'<span>
|
||
|
<u>Text<span></span></u>
|
||
|
<s>Text<span></span></s>
|
||
|
<strike>Text<span></span></strike>
|
||
|
</span>'
|
||
|
);
|
||
|
|
||
|
// redefinitions
|
||
|
/*$this->assertResult(
|
||
|
'<ol start="3">
|
||
|
<li value="2">Foo</li>
|
||
|
</ol>
|
||
|
<address>Text<span></span><p></p></address>
|
||
|
<blockquote>Text<span></span><div></div></blockquote>'
|
||
|
);*/
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|