Property | Type | Description | |
---|---|---|---|
$aliases | Lookup table of aliases to real doctype names. | ||
$doctypes | Hash of doctype names to doctype objects. |
Method | Description | |
---|---|---|
get ( string $doctype ) : HTMLPurifier_Doctype | Retrieves reference to a doctype of a certain name | |
getDoctypeFromConfig ( HTMLPurifier_Config $config ) : string | Retrieves the doctype from the configuration object | |
make ( HTMLPurifier_Config $config ) : HTMLPurifier_Doctype | Creates a doctype based on a configuration object, will perform initialization on the doctype | |
register ( string $doctype, boolean $xml = true, array $modules = [], array $tidy_modules = [], array $aliases = [], string $dtd_public = null, string $dtd_system = null ) : HTMLPurifier_Doctype | Registers a doctype to the registry |
public getDoctypeFromConfig ( HTMLPurifier_Config $config ) : string | ||
$config | HTMLPurifier_Config | |
return | string |
public make ( HTMLPurifier_Config $config ) : HTMLPurifier_Doctype | ||
$config | HTMLPurifier_Config | |
return | HTMLPurifier_Doctype |
public register ( string $doctype, boolean $xml = true, array $modules = [], array $tidy_modules = [], array $aliases = [], string $dtd_public = null, string $dtd_system = null ) : HTMLPurifier_Doctype | ||
$doctype | string | Name of doctype or literal doctype object |
$xml | boolean | |
$modules | array | Modules doctype will load |
$tidy_modules | array | Modules doctype will load for certain modes |
$aliases | array | Alias names for doctype |
$dtd_public | string | |
$dtd_system | string | |
return | HTMLPurifier_Doctype | Editable registered doctype |