mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 17:01:51 +00:00
42d2858c9d
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1610 48356398-32a2-884e-a903-53898d9a118a
16 lines
333 B
PHP
16 lines
333 B
PHP
--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>
|