trouble beetween (xml and fromHtml)

anakine54

New Member
Joined
Aug 28, 2014
Messages
1
Reaction score
0
Current Phone Model
1612
Hello
I do not understand why this code works :

strVar=" something <b> bold something</b>";
Spanned marked_up = Html.fromHtml(strVar);

but not this one's :
strVar= res.getString(R.string.str_in_xml);
// (str_in_xml) var defined in the directory res/values/strings.xml the same the other
Spanned marked_up = Html.fromHtml(strVar);
 
Back
Top