I don't know the exact syntax offhand, but you could probably to a split on the 
string to divide it into lines, followed by a foldLeft to convert each line 
into a Text and a br.

-------------------------------------
daiwhea<[email protected]> wrote:

my issue is:

There are some text input by users. There are new line character(\r\n)
in these text. I want to convert those new line characters into <br />

In the snippet, I put <p>{note.replyContent.replaceAll("\n", "<br />")}
</p>. But the converted <br /> was changed to "&lt;br /&gt;" by lift.

So, my question is: In lift, how can I convert those new lines into
<br /> tags?

Thanks in advance. ^_^

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to