PHP » GoLang |
login |
register |
about
|
GoLang tidy::parseString
request it (779)
GoLang replacement for PHP's tidy::parseString
[edit | history]
tidy::parseStringtidy_parse_string(PHP 5, PHP 7, PECL tidy >= 0.5.2) tidy::parseString -- tidy_parse_string — Parse a document stored in a string DescriptionObject oriented style Procedural style Parses a document stored in a string. Parameters
Return ValuesReturns a new tidy instance. Examples
Example #1 tidy::parseString() example
<?phpThe 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
|
more
Most requested
more
Last requests
|