tidy
class tidy (View source)
An HTML node in an HTML file, as detected by tidy.
Properties
string|null | $errorBuffer | ||
string|null | $value |
Methods
(PHP 5, PECL tidy >= 0.5.2)
Returns the value of the specified configuration option for the tidy document
(PHP 5, PECL tidy >= 0.5.2)
Execute configured cleanup and repair operations on parsed markup
(PHP 5, PECL tidy >= 0.5.2)
Parse markup in file or URI
(PHP 5, PECL tidy >= 0.5.2)
Parse a document stored in a string
(PHP 5, PECL tidy >= 0.7.0)
Repair a string using an optionally provided configuration file
(PHP 5, PECL tidy >= 0.7.0)
Repair a file and return it as a string
(PHP 5, PECL tidy >= 0.5.2)
Run configured diagnostics on parsed and repaired markup
(PHP 5, PECL tidy >= 0.5.2)
Get release date (version) for Tidy library
(PHP 5, PECL tidy >= 0.7.0)
Get current Tidy configuration
(PHP 5, PECL tidy >= 0.5.2)
Get status of specified document
(PHP 5, PECL tidy >= 0.5.2)
Get the Detected HTML version for the specified document
Returns the documentation for the given option name
(PHP 5, PECL tidy >= 0.5.2)
Indicates if the document is a XHTML document
(PHP 5, PECL tidy >= 0.5.2)
Indicates if the document is a generic (non HTML/XHTML) XML document
(PHP 5, PECL tidy 0.5.2-1.0.0)
Returns a tidyNode object representing the root of the tidy parse tree
(PHP 5, PECL tidy 0.5.2-1.0.0)
Returns a tidyNode object starting from the <head> tag of the tidy parse tree
(PHP 5, PECL tidy 0.5.2-1.0.0)
Returns a tidyNode object starting from the <html> tag of the tidy parse tree
(PHP 5, PECL tidy 0.5.2-1.0)
Returns a tidyNode object starting from the <body> tag of the tidy parse tree
(PHP 5, PECL tidy >= 0.5.2)
Constructs a new tidy object
Details
string|int|bool
getOpt(string $option)
(PHP 5, PECL tidy >= 0.5.2)
Returns the value of the specified configuration option for the tidy document
bool
cleanRepair()
(PHP 5, PECL tidy >= 0.5.2)
Execute configured cleanup and repair operations on parsed markup
bool
parseFile(string $filename, mixed $config = null, string|null $encoding = null, bool $useIncludePath = false)
(PHP 5, PECL tidy >= 0.5.2)
Parse markup in file or URI
bool
parseString(string $string, mixed $config = null, string|null $encoding = null)
(PHP 5, PECL tidy >= 0.5.2)
Parse a document stored in a string
static string|false
repairString(string $string, array|string|null $config = null, string|null $encoding = null)
(PHP 5, PECL tidy >= 0.7.0)
Repair a string using an optionally provided configuration file
static string|false
repairFile(string $filename, array|string|null $config = null, string|null $encoding = null, bool $useIncludePath = false)
(PHP 5, PECL tidy >= 0.7.0)
Repair a file and return it as a string
bool
diagnose()
(PHP 5, PECL tidy >= 0.5.2)
Run configured diagnostics on parsed and repaired markup
string
getRelease()
(PHP 5, PECL tidy >= 0.5.2)
Get release date (version) for Tidy library
array
getConfig()
(PHP 5, PECL tidy >= 0.7.0)
Get current Tidy configuration
int
getStatus()
(PHP 5, PECL tidy >= 0.5.2)
Get status of specified document
int
getHtmlVer()
(PHP 5, PECL tidy >= 0.5.2)
Get the Detected HTML version for the specified document
string|false
getOptDoc(string $option)
Returns the documentation for the given option name
bool
isXhtml()
(PHP 5, PECL tidy >= 0.5.2)
Indicates if the document is a XHTML document
bool
isXml()
(PHP 5, PECL tidy >= 0.5.2)
Indicates if the document is a generic (non HTML/XHTML) XML document
tidyNode|null
root()
(PHP 5, PECL tidy 0.5.2-1.0.0)
Returns a tidyNode object representing the root of the tidy parse tree
tidyNode|null
head()
(PHP 5, PECL tidy 0.5.2-1.0.0)
Returns a tidyNode object starting from the <head> tag of the tidy parse tree
tidyNode|null
html()
(PHP 5, PECL tidy 0.5.2-1.0.0)
Returns a tidyNode object starting from the <html> tag of the tidy parse tree
tidyNode|null
body()
(PHP 5, PECL tidy 0.5.2-1.0)
Returns a tidyNode object starting from the <body> tag of the tidy parse tree
__construct(string $filename = null, mixed $config = null, string|null $encoding = null, bool $useIncludePath = null)
(PHP 5, PECL tidy >= 0.5.2)
Constructs a new tidy object