HtmlParse()
parse the given HTML (not only XHTML) as XML Object, work similar to XmlParse(), but this function is very forgiving with the syntax.
You can then use XmlSearch() to query to xml object
HtmlParse( html=string, caseSensitive=boolean );
Returns: Xml
Examples
content = "HI <body><p>Hello</p></body> !!!";
writeDump(htmlParse(content));
writeoutput(htmlParse('<html><body>aaa<br>bbb</body></html>'));
See also
- HTML
- Parsing
- XmlParse()
- XmlSearch()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)