1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-15 00:51:18 +01:00
vichan/inc/lib/htmlpurifier-4.6.0/tests/HTMLPurifier/PHPT/kses/basic.phpt
2015-02-20 23:16:38 -08: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>