Hi, I just replace the predefined character like below function. Maybe you can try it.
public void decodeEntities(StringBuffer sb) { sb.toString().replace("<", "<"); sb.toString().replace(">", ">"); sb.toString().replace(""", "\""); sb.toString().replace("'", "'"); sb.toString().replace("&", "&"); } On 12月16日, 下午10時12分, filbert <filbert...@gmail.com> wrote: > I've searched around but couldn't figure out what the right search > criteria should be... > > I've got some CDATA from an XML feed and it has things like " in > it. > > When I display it on the screen, it shows up as " instead of ", > which makes sense since it's not a HTML page. > > Is there a function out there that automatically decodes the HTML > characters? I could write my own method and regex the hell out of it > but I assume there's something slicker than that to handle it... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---