0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-14 01:08:41 +00:00
htmlpurifier/tests/HTMLPurifier/PHPT/kses/basic.phpt
Edward Z. Yang 12b811d749 Add vim modelines to all files.
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
2008-12-06 04:24:59 -05:00

15 lines
332 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>