<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 <horse.headed.fish....@gmail.com> wrote: > Hi all. > > I have some text I read in from an uploaded file using > scala.io.Source. I then have something like > > <div> > {(str.split("\n").map(x => <div>{x}</div>))} > </div> > > with str some portion of text from the input file containing HTML > formatting tags like <i> or <b>. > > Now, characters like < are being escaped to their proper entities > <. However, I want these to display as actual HTML (e.g. want > <i>foo</i> to be italic). Is there a straightforward way to do this? > > (Note that security isn't an issue since this is a feature only admins > will be using). > > Thanks much. > > -KP --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---