Methods summary
public
HTMLPurifier_Doctype
|
#
register( string $doctype, boolean $xml = true, array $modules = array(), array $tidy_modules = array(), array $aliases = array(), string $dtd_public = null, string $dtd_system = null )
Registers a doctype to the registry
Registers a doctype to the registry
Parameters
- $doctype
string $doctype Name of doctype or literal doctype object
- $xml
boolean $xml
- $modules
array $modules Modules doctype will load
- $tidy_modules
array $tidy_modules Modules doctype will load for certain modes
- $aliases
array $aliases Alias names for doctype
- $dtd_public
string $dtd_public
- $dtd_system
string $dtd_system
Returns
Note
Accepts a fully-formed doctype object, or the parameters for constructing a
doctype object
|
public
HTMLPurifier_Doctype
|
#
get( string $doctype )
Retrieves reference to a doctype of a certain name
Retrieves reference to a doctype of a certain name
Parameters
- $doctype
string $doctype Name of doctype
Returns
Note
This function resolves aliases
When possible, use the more fully-featured make()
|
public
HTMLPurifier_Doctype
|
#
make( HTMLPurifier_Config $config )
Creates a doctype based on a configuration object, will perform
initialization on the doctype
Creates a doctype based on a configuration object, will perform
initialization on the doctype
Parameters
Returns
Note
Use this function to get a copy of doctype that config can hold on to (this is
necessary in order to tell Generator whether or not the current document is XML
based or not).
|
public
string
|
|