By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,592 Members | 1,977 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,592 IT Pros & Developers. It's quick & easy.

Maintaining line breaks in HTML email

P: n/a
I have a text box which allows users to input the content for a HTML email.
I need to maintain the line breaks as the user enters them in the text box
when I send the email.

I'm assuming I need to do something like replace the line breaks in the text
box with <br/> tags?

Any ideas how I would do this please?
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Jos
Andrew Banks wrote:
I have a text box which allows users to input the content for a HTML
email. I need to maintain the line breaks as the user enters them in
the text box when I send the email.

I'm assuming I need to do something like replace the line breaks in
the text box with <br/> tags?

Any ideas how I would do this please?


In VB:

FinalText = InputText.Replace(vbCRLF,"<br>")

--

Jos
Nov 18 '05 #2

P: n/a
Cheers Jos, I guessed it would be a replace thing. Just wasn't certain what
to replace with the break tag
"Jos" <jo***************@fastmail.fm> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Andrew Banks wrote:
I have a text box which allows users to input the content for a HTML
email. I need to maintain the line breaks as the user enters them in
the text box when I send the email.

I'm assuming I need to do something like replace the line breaks in
the text box with <br/> tags?

Any ideas how I would do this please?


In VB:

FinalText = InputText.Replace(vbCRLF,"<br>")

--

Jos

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.