|
tidy::parseStringtidy_parse_stringParse a document stored in a string DescriptionObject oriented style
bool tidy::parseString
( string
$input
[, mixed $config
[, string $encoding
]] )Procedural style
tidy tidy_parse_string
( string
$input
[, mixed $config
[, string $encoding
]] )Parses a document stored in a string. Parameters
Return ValuesReturns a new tidy instance. Examples
Example #1 tidy::parseString example
<?php The above example will output: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> test </title> </head> <body> <p> error<br /> another line </p> </body> </html> Notes
See Also
|