Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to preserve line breaks in a textarea

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #40688
    jkinney768
    Participant

    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?

    #113681
    Paulie_D
    Member

    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.

    #113687
    Paulie_D
    Member
    #113688
    Argeaux
    Participant

    Where you output the string, something like:

    myString.Replace(“rn”, “
    “);

    #113689
    Argeaux
    Participant

    damnit… in the seconds parameter: < br > < br>

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Other’ is closed to new topics and replies.