Reading XmlText Values From The XML Document Produced By htmlParse() In Lucee CFML 5.3.4.80
DRANK

Over the weekend, I spent about 2-days trying to retrofit Markdown onto 15-years of HTML-based content using htmlParse() in Lucee CFML. It was an iterative process with a lot of trial and error. And, even after I posted my article, I continued to find new and interesting caveats. One thing that caught me off-guard was that escaped HTML entities within the original HTML source-code became un-escaped when being accessed through the resultant .xmlText properties. As such, I wanted to take a quick look at how I might be able to access the original, escaped-value using htmlParse() and Lucee CFML 5.3.4.80.To understand what I mean, imagine parsing HTML that contains the following source:<p> Ben + JavaScript --&gt; Happy </p>... where the "greater than" character is HTML-encoded so that it doesn't mess up the HTML DOM (Document Object Model). Now, if I were to run this HTML through the htmlParse() function and then access the .xmlText property of that Paragraph node, I would get the followin…

bennadel.com
Related Topics: XML