Parsing HTML with Erlang

2019-03-27 11:38发布

问题:

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?

回答1:

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



标签: erlang