1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-16 17:36:01 +01:00
vichan/inc/lib/htmlpurifier-4.6.0/tests/HTMLPurifier/PHPT/kses/basic.phpt

15 lines
332 B
Plaintext
Raw Normal View History

2015-02-21 08:16:38 +01:00
--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--
2014-09-24 01:25:04 +02:00
<a class="foo">FooBar</a>