aboutsummaryrefslogblamecommitdiffstats
path: root/lib/htmlpurifier/tests/HTMLPurifier/PHPT/kses/basic.phpt
blob: 8a9cd01621084dfedfa0d2462704e6d93dde8763 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>