This commit is contained in:
takezoe
2013-07-17 19:00:35 +09:00
parent 05d7e33d86
commit 900e91e101

View File

@@ -20,7 +20,7 @@ object StringUtil {
def urlDecode(value: String): String = URLDecoder.decode(value, "UTF-8") def urlDecode(value: String): String = URLDecoder.decode(value, "UTF-8")
def splitWords(value: String): Array[String] = value.split("[ \\t ]+]") def splitWords(value: String): Array[String] = value.split("[ \\t ]+")
def escapeHtml(value: String): String = def escapeHtml(value: String): String =
value.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;").replace("\"", "&quot;") value.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;").replace("\"", "&quot;")