(refs #3)Cleanup

This commit is contained in:
takezoe
2013-07-17 16:59:38 +09:00
parent 512e59193d
commit 7f0aff8c03
3 changed files with 29 additions and 34 deletions

View File

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