Hi,

I just replace the predefined character like below function.
Maybe you can try it.

        public void decodeEntities(StringBuffer sb) {
                sb.toString().replace("&lt;", "<");
                sb.toString().replace("&gt;", ">");
                sb.toString().replace("&quot;", "\"");
                sb.toString().replace("&apos;", "'");
                sb.toString().replace("&amp;", "&");
        }

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 &quot; in
> it.
>
> When I display it on the screen, it shows up as &quot; 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to