friendica-github/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Empty.php

16 lines
248 B
PHP
Raw Normal View History

2010-09-09 03:14:17 +00:00
<?php
/**
* Concrete empty token class.
*/
class HTMLPurifier_Token_Empty extends HTMLPurifier_Token_Tag
{
2016-02-09 10:06:17 +00:00
public function toNode() {
$n = parent::toNode();
$n->empty = true;
return $n;
}
2010-09-09 03:14:17 +00:00
}
// vim: et sw=4 sts=4