You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

basic.phpt 332B

123456789101112131415
  1. --TEST--
  2. HTMLPurifier.kses.php basic test
  3. --FILE--
  4. <?php
  5. require '../library/HTMLPurifier.kses.php';
  6. echo kses(
  7. '<a class="foo" style="color:#F00;" href="https://google.com">Foo<i>Bar</i>',
  8. array(
  9. 'a' => array('class' => 1, 'href' => 1),
  10. ),
  11. array('http') // no https!
  12. );
  13. --EXPECT--
  14. <a class="foo">FooBar</a>