You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ErrorsHarness.php 473B

12345678910111213141516171819
  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. {
  8. $strategy = $this->getStrategy();
  9. $lexer = new HTMLPurifier_Lexer_DirectLex();
  10. $tokens = $lexer->tokenizeHTML($input, $this->config, $this->context);
  11. $strategy->execute($tokens, $this->config, $this->context);
  12. }
  13. }
  14. // vim: et sw=4 sts=4