Parse the given HTML/XHTML and converts it to an XML object. Similar to xmlParse, but this function is very forgiving
htmlParse(html [, caseSensitive])
returns xml
Name | Type | Required | Default | Description |
---|---|---|---|---|
html | string | Yes | ||
caseSensitive | boolean | No |
Convert the HTML to Xml object.It supported in Lucee
HtmlContent = "Hello <body><p>world</p></body>";
writeDump(htmlParse(HtmlContent));
writeoutput(htmlParse('<html><body><p>This is example text</p></body></html>'));