There are many times that you want to parse the output from a dirty HTML document. What do we mean by "dirty"? Well, we are used to parsing XML files fine, but HTML isn't like XML, it has open tags with no closers, it accepts both <br> and <br/> and generally it is all round messy.
In Railo 3.3 we have a function called HTMLParse() to go along with it's XML cousin XMLParse(). When you use this tag, you can then parse HTML into an XML Object. Let's look at the following example:
Read full article from Railo - Parsing Dirty HTML into Valid XML — Railo Blog
No comments:
Post a Comment