ErrorsHarness.php 469 B

123456789101112131415161718
  1. <?php
  2. class HTMLPurifier_Strategy_ErrorsHarness extends HTMLPurifier_ErrorsHarness
  3. {
  4. // needs to be defined
  5. protected function getStrategy() {}
  6. protected function invoke($input) {
  7. $strategy = $this->getStrategy();
  8. $lexer = new HTMLPurifier_Lexer_DirectLex();
  9. $tokens = $lexer->tokenizeHTML($input, $this->config, $this->context);
  10. $strategy->execute($tokens, $this->config, $this->context);
  11. }
  12. }
  13. // vim: et sw=4 sts=4