Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
HTML_Tidy Class Reference
Inheritance diagram for HTML_Tidy:

Public Member Functions

 HTML_Tidy ()
 
 new_inline_tag ($tag_name)
 
 process (&$html)
 
 getIgnoredErrors ()
 

Static Public Member Functions

static check_usable ()
 

Data Fields

 $_new_inline_tags = Array()
 
 $_show_in_toolbar = FALSE
 
 $htmltidy_status = 'pass'
 
 $htmltidy_errors = NULL
 
 $html_standards
 

Detailed Description

Definition at line 37 of file html_tidy.inc.

Member Function Documentation

static check_usable ( )
static

Check whether this plugin is ready to be used.

Return a TRUE if ok or a error message.

Returns
mixed boolean|string public

Definition at line 288 of file html_tidy.inc.

getIgnoredErrors ( )

Ignore these errors

Returns
array public

Definition at line 304 of file html_tidy.inc.

HTML_Tidy ( )

Constructor

Returns
object HTML_Tidy public

Definition at line 84 of file html_tidy.inc.

new_inline_tag (   $tag_name)

Let HTMLTidy known about a special inline tag during cleaning

Parameters
string$tag_namethe name of the new tag
Returns
boolean public

Definition at line 98 of file html_tidy.inc.

process ( $html)

Cleans the submitted HTML using HTML Tidy

Parameters
string&$htmlthe HTML that was submitted by the editor
Returns
string public

Definition at line 117 of file html_tidy.inc.

Field Documentation

$html_standards
Initial value:
= Array(
'HTML_4.01_Transitional' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
'HTML_4.01_Strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> ',
'HTML_4.01_Frameset' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
'XHTML_1.0_Strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
'XHTML_1.0_Transitional' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
'XHTML_1.0_Frameset' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
'XHTML_1.1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
)

Definition at line 66 of file html_tidy.inc.


The documentation for this class was generated from the following file: