2007-06-26 15:07:07 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class HTMLPurifier_Strategy_ErrorsHarness extends HTMLPurifier_ErrorsHarness
|
|
|
|
{
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-06-26 15:07:07 +00:00
|
|
|
// needs to be defined
|
2008-04-21 15:24:18 +00:00
|
|
|
protected function getStrategy() {}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2008-04-21 15:24:18 +00:00
|
|
|
protected function invoke($input) {
|
2007-06-26 15:07:07 +00:00
|
|
|
$strategy = $this->getStrategy();
|
|
|
|
$lexer = new HTMLPurifier_Lexer_DirectLex();
|
|
|
|
$tokens = $lexer->tokenizeHTML($input, $this->config, $this->context);
|
|
|
|
$strategy->execute($tokens, $this->config, $this->context);
|
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-06-26 15:07:07 +00:00
|
|
|
}
|
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|