Javaで利用可能なHTMLエスケープライブラリunbescapeを利用します。
ライブラリの取得
build.sbtに以下の記述を追加します。
libraryDependencies += "org.unbescape" % "unbescape" % "1.1.3.RELEASE"
文字列をデコード
デコード処理のサンプルコードです。
import org.unbescape.html.HtmlEscape
val encodedText = "<script>alert("foo")</script>"
val decodedText = HtmlEscape.unescapeHtml(encodedText)
println(decodedText) // <script>alert("foo")</script>