开发者

Lift Shtml.link

开发者 https://www.devze.com 2023-01-26 21:57 出处:网络
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

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

精彩评论

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