mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 00:41:52 +00:00
15 lines
205 B
PHP
15 lines
205 B
PHP
|
<?php
|
||
|
|
||
|
class HTMLPurifier_IDAccumulator
|
||
|
{
|
||
|
|
||
|
var $ids = array();
|
||
|
|
||
|
function add($id) {
|
||
|
if (isset($this->ids[$id])) return false;
|
||
|
return $this->ids[$id] = true;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|