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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textarea field ...

Status
Not open for further replies.

zekmek

Programmer
Jun 12, 2003
44
0
0
PT
Hi all,

Here is my problem:

i have a textarea in which i display a field from my database. in this field there are '<br>' characters. so i wanted the textarea to go to a new line when he finds a '<br>'. so i told him to each times he finds a '<br>', replace it by '\n'

The problem now is the user can edit this textarea and submit the changes. so i wanted, before the validation, to replace back the '\n' by <br> but it doesn't seems to work. i have also tried to replace the '\r\n' but the same, doesn't work :-(

has anybody got any idea ?

thanks all :) }
 
You should be able to use a Regular Expression replace to do that for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top