On Wed, 18 Apr 2012 19:47:11 +0200, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote:

On Wed, 18 Apr 2012 14:06:02 -0300, Tim Koop <t...@timkoop.com> wrote:

Is there some way I can convert eol's to <br/> or something?

Like doing this conversion yourself using String.replaceAll() and using OutputRaw in the template?

If you do it this way, remember to escape any HTML characters first.
Otherwise you could be introducing an XSS vulnerability since a user can type HTML into the textarea.



Another option is to leave the code as it is right now and fix this with CSS instead:

p.mytext {
    white-space: pre;
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to