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
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