如何在不使用外部模板文件的情况下从 Play 2 呈现内联 HTML?
def checkStatus = Action {
val status = ...
if (status.ok) {
Ok("Status OK")
} else {
// Oops, this renders the literal text instead of the HTML I wanted:
Ok("Bad status, check out <a href='http://help.us.com/'>our help page</a>")
}
}