Fix typos in AttrDef/Lang.php involving lowercasing uppercased language strings.
[htmlpurifier.git] / benchmarks / ProfileDirectLex.php
blobfaf9bef5b69d8092b73cec8b1d2c11e99e51c912
1 <?php
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);