On Aug 8, 10:43 pm, ndiiie90 wrote: > What i mean is to replace all "&" tags in data that is retrieved from > database.. > > So for example, > > the data is: > > I am a java & android developer > > will be replaced into: > > I am a java & android developer
That is not a valid replacement, actually, as entities are set off by ampersand and semicolon characters, e.g., "&". > How can i do that? I think it is not effective to replace all & tag by > proper character What exactly do you mean by "not effective" and why do you think that would be a problem? The classes and methods suggested by other respondents would be quite effective as far as I can tell. You might also consider the java.util.regex package. In the same package with android.text.Html there are other potentially useful classes, such as android.text.TextUtils. Bear in mind that there a quite a few entities you will want to parse. <http://www.w3schools.com/tags/ref_symbols.asp> -- Lew -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

