{"userName":"1_jan_\u003cscript>alert(1)\u003c/script>
我用过
ObjectMapper mapper = new ObjectMapper(); User user = mapper.readValue(input, User.class);
和
Gson g = new GsonBuilder().create();
我不希望\u003c转换为〈。请帮我做这件事。
k0pti3hp1#
试试看
Gson g= new GsonBuilder().disableHtmlEscaping().create();
1条答案
按热度按时间k0pti3hp1#
试试看