I have the following block of HTML:
<p>The quick brown fox jumps over the lazy dog — The quick brown fox jumps over the lazy dog.</p>
<p>The quick brown fox jumps over the lazy dog — The quick brown fox jumps over the lazy dog.
<br>The quick brown fox jumps over the lazy dog — The quick brown fox jumps over the lazy dog.
It is NOT valid XHTML. However, I need to include this HTML in an XML document. I tried using XMLFormat() in order to convert the < to < and the > to >, which works great. Unfortunately, it also converts — to &mdash;, which is not valid and throws an exception in the CFXML tag.
<cfxml variable="myXML">
<content>#XMLFormat(myHTML)#</content>
</cfxml>
How can I workaround this?