Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Converting line breaks to <br> in textarea output

Quote Reply
Converting line breaks to <br> in textarea output
I currently have HTML formatted turned off for the output of a column from a textarea by using <%escapeHTML ColumnName%>

Unfortunately, this gets rid of any line breaks the user may have put in their text. Is there a way to convert linebreaks to <br> tags?

I would have to stop using "escapeHTML" in order for the <br> tags to work, though, so would there be a way within the same mod to not allow any html codes except for <br> after the linebreaks are converted to <br> tags?

I have tried using the <pre> tag but it doesn't word wrap and it would be much better to allow certain HTML codes anyhow.

Any ideas? Thank you
Subject Author Views Date
Thread Converting line breaks to <br> in textarea output Dempsey 6955 Sep 12, 2009, 4:05 PM
Post Re: [Dempsey] Converting line breaks to <br> in textarea output
Dempsey 6772 Sep 12, 2009, 5:51 PM