Parsing HTML with Erlang

erlang

Solution

Have just found mochiweb_html. Looks like it does what I want...

Problem

I am trying to write my first Erlang application, and I need to parse HTML into some sort of internal format. I have had a look at the merl module, but as far as I can see it is only capable of parsing XML. When I supply HTML to merl, it chokes on the non symetric tags. Which library should I be using for this?

Original source