Does anyone have tips on preserving line breaks in <c:out>?

For example, a user enters text into a textarea, which is stored in a
database. When I retrieve the text from the database, I'd like to
display it formatted exactly as the user entered it.

I can only think of two options:

1) Parse the text, insert <p> and <br> tags as needed, and set
escapeXml=false on the <c:out> tag

2) Hardwrap the text and use a <pre> tag or CSS equivalent around it.

Anyone have other ideas?

Thanks,

Brian



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to