HtmlParse

parse the given html (not only xhtml) as xml Object, work similar to xmlParse, but this function is very forgiving with the syntax..

HtmlParse( html [, caseSensitive ] )

Returns: Xml

Argument Description
html
string, required

Alias: string, text

caseSensitive
boolean, optional

Examples

content = "HI <body><p>Hello</p></body> !!!";
writeDump(htmlParse(content));
writeoutput(htmlParse('<html><body>aaa<br>bbb</body></html>'));

See also