24 $file = HTMLPURIFIER_PREFIX .
'/HTMLPurifier/EntityLookup/entities.ser';
26 $this->table = unserialize(file_get_contents(
$file));
34 public static function instance($prototype =
false)
37 static $instance =
null;
39 $instance = $prototype;
40 } elseif (!$instance) {
Object that provides entity lookup table from entity name to character.
static instance($prototype=false)
Retrieves sole instance of the object.
$table
Assoc array of entity name to character represented.
setup($file=false)
Sets up the entity lookup table from the serialized file contents.