You can also try

import cgi
db.table.field.filter_in = lambda text: cgi.escape(text) #1

db.table.field.filter_out = lambda text: XML(text) #2
#2 should be equivalent to what Anthony suggests. #1 may be necessary to 
keep the same format in the database.
Anyway, I did not try it.

Massimo

On Monday, 3 September 2012 16:56:13 UTC-5, Jose C wrote:
>
>
> for option in form.elements('option'):
>>     option['_value'] = XML(option['_value'])
>>     option[0] = XML(option[0])
>>
>> Anthony
>>
>>
> Yes! Thank you Anthony, that does exactly what I need. I was heading off 
> down a much more convoluted and inelegant track to achieve the same thing.
>
> JC
>

-- 



Reply via email to