About replace \r with <br/>

13 08 2007

It is common that replace \r with a <br/> in textbox so that they look good in html. sometime it is a problem because the line will be very long and if you send it as html email some mail server will reject it with error message “mail data lines too long”. The correct solution should be replace(“\r”,”\r<br/>”)..

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: