Parsing HTML text in a local XML file in android

I am trying to parse a local xml file in an Android application, but some of the code is in HTML format stored in the CDATA section in xml tags. How can I get the data to be analyzed as well?

+3
source share
1 answer

I found a solution that passes the character string of a CDATA section to textview as

textView.setText((Html.fromHtml(string),TextView.BufferType.SPANNABLE); 
0
source

All Articles