- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello,
Does anyone know how to preserve line breaks in a text area? I’m having a problem in our custom CMS where when you type something in a text area in the back end, the line breaks don’t show up on the front end. So it’ll look like this in the back end:
text area
text area
text area
But will come out like this on the front end:
text area text area text area.
I know it’s possible since this forum is obviously doing it, but I just have no clue how. Does anyone have an idea?
It’s your custom CMS. How do you have your text fields set up?
BTW, I had to edit your OP to get the original vertical ‘text areas’ to show properly so perhaps this forum isn’t the best example.
Where you output the string, something like:
myString.Replace(“rn”, “
“);
damnit… in the seconds parameter: < br > < br>