Function: htmlToXML()
Converts a HTML string to an XML string. This can be useful if you then wish to pass it to the function xmlToItems.
Syntax
htmlToXML(string)
Argument | Type | Description |
---|---|---|
string | String | HTML string to be converted to XML. |
Examples
htmlToXML("{"InvoiceLine": { "Item": "Chair", "Quantity": "18", "Price": "15.00" } }")
Generates the XML
<![CDATA[ Chair15.0018]]>