Shtml.link elevator

why does the Lift method SHtml.linkonly accept NodeSeqas one of the parameters? What if I want to create a link only in <a>Something</a>place of a nested one? How can I turn Stringin NodeSeq?

+3
source share
2 answers

Use xml.Text(someString). Its a simple scala class.

+5
source

Use scala.xml.Unparsed for example - return Unparsed("String")where the string is some html string.

+2
source

Source: https://habr.com/ru/post/1777095/