| Author |
teatarea in html
|
Sripathi Krishnamurthy
Ranch Hand
Joined: Mar 07, 2005
Posts: 232
|
|
<html> <head> <title> </title> </head> <body> <textarea rows=3 cols=100>\nthis is a test\nthis is a test </textarea> </body> </html> Now the test appears as "\nthis is a test\nthis is a test". I want the text to appear as this is a test this is a test. Can anyone tell me how to handle this? This text comes from a program and hence I cant manually "enter" from my keyboard. But yes, I can do anything to programatically to achieve the same. Thanks Sripathi
|
 |
Bajji Pat
Ranch Hand
Joined: Apr 05, 2005
Posts: 50
|
|
Hi U can match the "\n" (newline) and replace them with <br/> Balaji
|
 |
Sripathi Krishnamurthy
Ranch Hand
Joined: Mar 07, 2005
Posts: 232
|
|
it wont work. It will come as this is a test <br/>.I figured the solution for this. Use html entity. 
 instead of \n. I tried it and it works. Cheers [ May 06, 2005: Message edited by: Sripathi Krishnamurthy ] [ May 06, 2005: Message edited by: Sripathi Krishnamurthy ] [ May 06, 2005: Message edited by: Sripathi Krishnamurthy ]
|
 |
 |
|
|
subject: teatarea in html
|
|
|