PageRenderTime 54ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/lib/htmlpurifier/library/HTMLPurifier/ChildDef/Empty.php

http://github.com/gabrys/wikidot
PHP | 21 lines | 11 code | 3 blank | 7 comment | 0 complexity | 1151e032bb545a5b826e025961bf6c02 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php
  2. require_once 'HTMLPurifier/ChildDef.php';
  3. /**
  4. * Definition that disallows all elements.
  5. * @warning validateChildren() in this class is actually never called, because
  6. * empty elements are corrected in HTMLPurifier_Strategy_MakeWellFormed
  7. * before child definitions are parsed in earnest by
  8. * HTMLPurifier_Strategy_FixNesting.
  9. */
  10. class HTMLPurifier_ChildDef_Empty extends HTMLPurifier_ChildDef
  11. {
  12. public $allow_empty = true;
  13. public $type = 'empty';
  14. public function __construct() {}
  15. public function validateChildren($tokens_of_children, $config, $context) {
  16. return array();
  17. }
  18. }