Lift Shtml.link
why Lift's SHtml.link
metho开发者_运维技巧d accepts just NodeSeq
as one of the params? What should I do when I want to create link just at<a>Something</a>
instead of nested one? How can I turn a String
into NodeSeq
?
Use xml.Text(someString)
. It’s a plain scala class.
Use scala.xml.Unparsed
eg - return Unparsed("String")
where string is some html string.
精彩评论