PageRenderTime 38ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/synergylearning/campusconnect
PHP | 15 lines | 9 code | 2 blank | 4 comment | 0 complexity | c13013371746cf36b46fe3dc6fac3d9d MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, LGPL-2.1, Apache-2.0, BSD-3-Clause, AGPL-3.0
  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