[Lift] Re: HTML decoding

2009-09-01 Thread marius d.
div {(str.split(\n).map(x = div{x}/div))} /div {x} is an expression that returns a String. Assuming that x is a well- formed XML node you could try something like: div {(str.split(\n).map(x = div{XML.loadString(x)}/div))} /div Br's, Marius On Sep 1, 7:24 am, KP

[Lift] Re: HTML decoding

2009-09-01 Thread KP
Ah, this is exactly what I'm looking for. Thank you both! -KP On Sep 1, 10:20 am, David Pollak feeder.of.the.be...@gmail.com wrote: If you have a String that you know is valid XHTML but don't want to go through the parsing/unparsing phase: import scala.xml._ val s: String =