mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-05 21:57:26 +02:00
Define AttrDef_Text and parseCDATA().
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@160 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
20
tests/HTMLPurifier/AttrDef/TextTest.php
Normal file
20
tests/HTMLPurifier/AttrDef/TextTest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
require_once 'HTMLPurifier/AttrDef/Text.php';
|
||||
|
||||
class HTMLPurifier_AttrDef_TextTest extends UnitTestCase
|
||||
{
|
||||
|
||||
function test() {
|
||||
|
||||
$def = new HTMLPurifier_AttrDef_Text();
|
||||
|
||||
$this->assertTrue($def->validate('This is spiffy text!'));
|
||||
$this->assertEqual('Casual CDATA parsecheck.',
|
||||
$def->validate(" Casual\tCDATA parse\ncheck. "));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user