开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜