Tango should get this right if you don't stipulate encoding, like this:

<textarea><@COLUMN my_col></textarea>

Like this (in a Results action) Tango should do HTML encoding, converting
"<" to "&lt;", etc.  This is how the value must be escaped.  If the value
contains "</textarea>" you want Tango to change this into
"&lt;/textarea&gt;" and it should do this automatically.  The browser
should render (un-escape) the contents of the textarea properly and show
"</textarea>".

Also, make sure the value you update the database with stipulates
ENCODING=NONE, because you don't want to store an escaped value.

Things are complicated if you're storing all this HTML in a variable
first.  Then you run into a problem because Tango doesn't (to my
knowledge) have a name for "HTML" encoding, so you can't ask for it by
name like the other encodings.

On Wed, 8 Jan 2003, Atrix Wolfe wrote:

> hello, i have a problem im trying to solve.
> 
> I have a form with a textarea where a user enters some text, then they click Update 
>and it takes that text and stores it in the database and brings them right back to 
>the form (re-selecting and displaying their text from the database).  The problem im 
>having is that it turns < and > into &lt and &gt.  if i update again, it turns &lt to 
>&amp;&lt; and &gt to &amp;&gt;.  Ive tried various encoding= settings (including 
>none!) but nothing seems to let a < remain a <.
> 
> Anyone know how to do this?
> 
> Thanx!
> -Atrix

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to