I thought QDomDocument could do the job but it just can't handle HTML... at least i cannot make it work.

Any ideas?

Thanks