Sorry for my english. My question:
Using jsoup i get json response from site. Some entities have unescaped html charactes, for example
{
"status":200,
"result":[
{
"id":22,
"title":"<p>Мир "Юрского периода" искусств</p>",
"view":1153039,
"image":{
"desktop":{
"image":"img.png",
"svg":"img.svg"
}
},
"part":{
"topic":" Глава\Глава"
}
}
],
"message":""
}
I use Gson. If i try to deserialize this string i will get error on double quotes in title and "\" in topic. How Can i escape these characters. I only know one way to do this: using regex get string in topic and title and change " to \". The only problem is that there are many such json entity, and it takes a lot of time. Is there a better way?