XHTML_Validator XHTML_Validator(
[string
$context = 'posting'], [boolean
$allow_css_tweaks = false], [boolean
$allow_iframes = false], [boolean
$allow_javascript = false], [boolean
$allow_objects = false], [string
$encoding = NULL], [string
$msg_type = 'error']
)
|
|
Constructor
Parameters:
|
string |
$context: |
Context: "posting", "xmlrpc_posting" or "commenting" |
|
boolean |
$allow_css_tweaks: |
Allow the "style" attribute to be used? |
|
boolean |
$allow_iframes: |
Allow using the <iframe> tag? |
|
boolean |
$allow_javascript: |
Allow using the <script> and <noscript> tags? |
|
boolean |
$allow_objects: |
Allow using the <object> and <embed> tags? |
|
string |
$encoding: |
Input encoding to use ('ISO-8859-1', 'UTF-8', 'US-ASCII' or ''/NULL for auto-detect) |
|
string |
$msg_type: |
Message category for error messages |
void cdata(
$parser,
$cdata
)
|
|
cdata(-)
Parameters:
void html_error(
$string
)
|
|
dummy docblock makes error-free autodocs
Parameters:
void pi_handler(
$parser,
$target,
$data
)
|
|
Called when the parser finds a processing instruction.
We try to check the contents of the instruction for safe XHTML.
Parameters:
void tag_close(
$parser,
$tag
)
|
|
tag_close(-)
Parameters:
void tag_open(
$parser,
$tag,
$attrs
)
|
|
tag_open(-)
Called when the parser finds an opening tag
Parameters: