HTMLPurifier_DoctypeRegistry::register
Registers a doctype to the registry
Signature
public function register(Name
$doctype,
[boolean
$xml = true,
[array
$modules = ,
[array
$tidy_modules = ,
[array
$aliases = ,
[
$dtd_public = NULL,
[
$dtd_system = NULL]]]]]] )
Parameters
$doctype
—
object
- of doctype or literal doctype object
$xml
—
boolean
$modules
—
array
- doctype will load
$tidy_modules
—
array
$aliases
—
array
- names for doctype
$dtd_public
—
$dtd_system
—
Returns
- Editable
- registered doctype