mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
14 lines
306 B
PHP
14 lines
306 B
PHP
|
<?php
|
||
|
|
||
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../library/');
|
||
|
|
||
|
require_once 'HTMLPurifier/Lexer/DirectLex.php';
|
||
|
|
||
|
$input = file_get_contents('samples/Lexer/4.html');
|
||
|
$lexer = new HTMLPurifier_Lexer_DirectLex();
|
||
|
|
||
|
for ($i = 0; $i < 10; $i++) {
|
||
|
$tokens = $lexer->tokenizeHTML($input);
|
||
|
}
|
||
|
|
||
|
?>
|