Answered
Display html as text in textarea...
Ive got a textarea on a form, that when submitted I replace
the carriage returns with <BR> just before it is save into
the database like below....
<cfset comments=Replace(comments,Chr(13),"<BR>","ALL")>
But when retrieving what is saved I want to diplay it in the textarea again, but without the <br>'s. Is there a function I can use to display what's in the textarea as html?
So...instead of this...
Test<br><br>test
...I want this within the text area.....
Test
Test
I tried to reverse my initial replace function but didn't have any luck. Any thoughts or suggestions would be appreciated.
Thanks!
Dustin
<cfset comments=Replace(comments,Chr(13),"<BR>","ALL")>
But when retrieving what is saved I want to diplay it in the textarea again, but without the <br>'s. Is there a function I can use to display what's in the textarea as html?
So...instead of this...
Test<br><br>test
...I want this within the text area.....
Test
Test
I tried to reverse my initial replace function but didn't have any luck. Any thoughts or suggestions would be appreciated.
Thanks!
Dustin
