Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replace \n with <br>

Status
Not open for further replies.

michelledebeer

Programmer
Oct 26, 2001
22
0
0
SE
I have a text-area and when you submit it, the \n (enter) should be replaced with a <br>. How do I do this?

Example:
TEXT:
Text with some
enters that should be replaced
by &quot;<br>&quot;

REPLACED TEXT:
Text with some<br>enters that should be replaced<br>by &quot;<br>&quot;
 
Read my post here: thread216-360931
I posted there a script that does this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top