Line break in ASP
There is no single function to convert text line break to html line break in ASP. This has many requirements particularly when you are sending html email or posting the textbox entered data to the screen. The line breaks inside the textarea won't reflect as it is when we show the output through the browser. Reason is text line breaks we have to change to html line breaks.
To get this we will use ASP string replace function like this .
Replace( text_variable,vbcrlf,”<BR>”)
Vbcrlf is the line break in text format , this will be replace by <BR> line break tag in html.
Equivalent line break command in PHP is nl2br
This article is written by plus2net.com team.
Be the first to post comment on this article :
plus2net.com
|