-->

How to parse the html content in android using SAX

2020-07-18 05:39发布

问题:

There is description tag in xml. It contains the html tags. I am using SAX parser in android to parse. But when it fetch data from the description tag then it does not fetch the html contents, not any tags. Then how i solve the problem of the html content parsing from the XML using SAX parser please help.

回答1:

It looks like you need wrap the description in CDATA element http://en.wikipedia.org/wiki/CDATA