line breaks; vbCrLf and < BR >

  •  04-19-2007, 12:29 PM

    line breaks; vbCrLf and < BR >

    Hi Everyone,

    We have a problem with cuteeditor, I hope you can help!

    Our old cms had just a textbox and the line breaks were stored as 'vbCrLf'.  In the cms text box they showed as line breaks and in the asp front-end of the website we had a replace string that replaced vbCrLf with <BR>

    Now we have many pages in our db which have vbCrLf line breaks and we need to convert the old vbCrLf to <BR>

    we have written a replace like:
    ftbContent.Text = ctrEvent.EventDetails_TXT.Replace(vbCrLf, "<br>")

    but the problem is that cuteeditor also adds a vbCrLf when you save the page with the result that each time you save the page the space between each paragraph is doubled!

    Is it possible to get cuteeditor not to add the vbCrLf?

    Could we try something else?

    I am tearing my hair out and would appreciate any help :-)

    Thanks in advance,
    Marcus



View Complete Thread