07-08-2013 09:19 AM
Hi every one
I am getting the string which having some HTML tag like &, and while I am adding it in to label field it is displaying all HTML content., so how to convert it into displayable text.
Can any body have idea
07-08-2013 05:57 PM
Is this XML or HTML.
If you are not seeing tags like <p> then I suspect you have XML data. How did you get this data? Normally you will get this from some XML parsing, in which case these characters will be replaced automatically.
07-09-2013 12:15 AM
I am using json parsing not xml and my data is coming as a string like "Exceptional Ramadan at Jumeirah Hotels & Resorts" here & symbol is showing like &.
What to do.
07-09-2013 03:44 AM
This looks like XML encoding, not HTML encoding.
Can you find out why the text data is being encoded in this way? With JSON you don't need to encode the ampersand, but perhaps your Server is just using this encoding to make sure that the JSON string does not include a double quote. Perhaps your Server is doing this, and the ampersand encoding is a side effect. In which case you will need to 'undo' the encoding at the BlackBerry end.
07-09-2013 04:38 AM
thanks for response
but how to undo the encoding from blackberry end can you give little idea. As you know I am using json parsing so i am getting data as string.