I am receiving a string using REST APIs.
JSONObject obj = new JSONObject(output);
JSONArray contacts = obj.getJSONArray("results");
JSONObject result = contacts.getJSONObject(0);
..
String brandName = result.getString("productName");
In some cases productName
comes as Dri-FIT™ Element Half Zip
.
I want to show it as "Dri-FIT™ Element Half Zip" in Android, but it shows up in the TextView
as Dri-FIT™ Element Half Zip
.
Can anyone help me as to how to convert the HTML escape sequence to a valid Java escape sequence so that I can view it?