mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 15:48:42 +00:00
b3640e1af6
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
16 lines
248 B
PHP
16 lines
248 B
PHP
<?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
|