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