/lib/htmlpurifier/HTMLPurifier/Token/Empty.php
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
- <?php
- /**
- * Concrete empty token class.
- */
- class HTMLPurifier_Token_Empty extends HTMLPurifier_Token_Tag
- {
- public function toNode() {
- $n = parent::toNode();
- $n->empty = true;
- return $n;
- }
- }
- // vim: et sw=4 sts=4