Blame view

vendor/ezyang/htmlpurifier/tests/HTMLPurifier/PHPT/kses/basic.phpt 332 Bytes
70f4f18b   Administrator   first_commit
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>