の SDK ドキュメントを読んだ後xml.Utility.unescape
、これは の逆の動作だと思いますが、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
?