Hi Gurus
I have a PHP page that allows a user to preview an email and then send it
if(s)he is happy with it.
Otherwise, they can click on an edit button and edit the text of the
message. The text is then shown in a textarea element.
While in situation A (the preview), a bit of formatting is useful (e.g
<BR>), all of this formatting is a nuisance in the textarea.
Basically, I would like to do the following:
a. replace <BR> with a line break for the textarea
b. get rid of double spaces and tabs before the text is loaded in the
textarea
c. put the <BR>s back in when the user is finished with editing the message.
Is there a way to do this?
TIA
- Nicolaas
I have a PHP page that allows a user to preview an email and then send it
if(s)he is happy with it.
Otherwise, they can click on an edit button and edit the text of the
message. The text is then shown in a textarea element.
While in situation A (the preview), a bit of formatting is useful (e.g
<BR>), all of this formatting is a nuisance in the textarea.
Basically, I would like to do the following:
a. replace <BR> with a line break for the textarea
b. get rid of double spaces and tabs before the text is loaded in the
textarea
c. put the <BR>s back in when the user is finished with editing the message.
Is there a way to do this?
TIA
- Nicolaas
Comment