How to decode encoded special XML characters in a string?

前端 未结 3 441
盖世英雄少女心
盖世英雄少女心 2020-12-17 14:47

I was given a string like

example.com/test?region=us&lang=en&jurisdiction=us

How can I write the java code to decode the e

相关标签:
3条回答
  • 2020-12-17 15:09

    You can also include special characters in XPL. XPL has exactly the same structure as XML, but allows special characters. There is an XML parser with source code available for transformations at http://hll.nu

    0 讨论(0)
  • 2020-12-17 15:20

    StringEscapeUtils seems to escape everything

    0 讨论(0)
  • 2020-12-17 15:30

    To unescape HTML/XML entities, use Apache Commons Lang StringEscapeUtils or homegrow one.

    0 讨论(0)
提交回复
热议问题