3 set_include_path(get_include_path() . PATH_SEPARATOR
. '../library/');
5 require_once 'HTMLPurifier/ConfigSchema.php';
6 require_once 'HTMLPurifier/Config.php';
7 require_once 'HTMLPurifier/Lexer/DirectLex.php';
9 $input = file_get_contents('samples/Lexer/4.html');
10 $lexer = new HTMLPurifier_Lexer_DirectLex();
12 for ($i = 0; $i < 10; $i++
) {
13 $tokens = $lexer->tokenizeHTML($input);