I want to replace content within an html element.
In JS it’s possible to use document.getElementById(id). And it’s not difficult to write the same function for getting elements by Class using getElementsByTagName() function.
I don’t want to reinvent the wheel. That is why I’m really interested whether there’re any libraries which can help to parse (get/set by id/class) HTML in Erlang.
If you are parsing xhtml then you could use xmerl_xpath to select elements. If it is not xhtml, I don’t know of any tools which can do what you want.