De serialize html escape characters using simple xml converter in retrofit android
问题 How can we deserialize html escape characters in inner tags of xml of a response body to be saved in POJO classes using simple xml converter in retrofit android? <?xml version="1.0" encoding="utf-8"?> <sample> <outer> <test>data<</test>> </outer> </sample> 回答1: This should do it @Root public class Sample { @Element Outer outer; } public class Outer { @Text String text; public Test test; public Xml(@Text String text) { Serializer serializer = new Persister(); try { example = serializer.read