Fix iconv truncation bug.
[htmlpurifier.git] / tests / HTMLPurifier / Strategy / ErrorsHarness.php
blob0e1bca681cbdf2aeac138511ed07afa5b1539762
1 <?php
3 class HTMLPurifier_Strategy_ErrorsHarness extends HTMLPurifier_ErrorsHarness
6 // needs to be defined
7 protected function getStrategy() {}
9 protected function invoke($input) {
10 $strategy = $this->getStrategy();
11 $lexer = new HTMLPurifier_Lexer_DirectLex();
12 $tokens = $lexer->tokenizeHTML($input, $this->config, $this->context);
13 $strategy->execute($tokens, $this->config, $this->context);
18 // vim: et sw=4 sts=4