PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/htmlpurifier/HTMLPurifier/Token/Empty.php

http://github.com/moodle/moodle
PHP | 15 lines | 9 code | 2 blank | 4 comment | 0 complexity | 2e2a42f4113442a404b0941a53f2ef72 MD5 | raw file
Possible License(s): MIT, AGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause
  1. <?php
  2. /**
  3. * Concrete empty token class.
  4. */
  5. class HTMLPurifier_Token_Empty extends HTMLPurifier_Token_Tag
  6. {
  7. public function toNode() {
  8. $n = parent::toNode();
  9. $n->empty = true;
  10. return $n;
  11. }
  12. }
  13. // vim: et sw=4 sts=4