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
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