mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 19:30:21 +02:00
[3.1.0] Experimental kses support.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1610 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
15
tests/HTMLPurifier/PHPT/kses/basic.phpt
Normal file
15
tests/HTMLPurifier/PHPT/kses/basic.phpt
Normal file
@@ -0,0 +1,15 @@
|
||||
--TEST--
|
||||
HTMLPurifier.kses.php basic test
|
||||
--FILE--
|
||||
<?php
|
||||
require '../library/HTMLPurifier.kses.php';
|
||||
echo kses(
|
||||
'<a class="foo" style="color:#F00;" href="https://google.com">Foo<i>Bar</i>',
|
||||
array(
|
||||
'a' => array('class' => 1, 'href' => 1),
|
||||
),
|
||||
array('http') // no https!
|
||||
);
|
||||
|
||||
--EXPECT--
|
||||
<a class="foo">FooBar</a>
|
Reference in New Issue
Block a user