在我阅读了xml.Utility.unescape
的 SDK 文档后,我认为这是 的相反操作xml.Utility.escape
,但它似乎根本没有做任何事情:
scala> xml.Utility.escape("& <")
res0: String = & <
scala> val sb = new StringBuilder
sb: StringBuilder =
scala> xml.Utility.unescape("& <", sb)
res1: StringBuilder = null
scala> sb.toString
res2: String = ""
如何正确使用xml.Utility.unescape
?