Thanks Anthony. It still appears to be returning the string result rather 
than the HTML object - even for the first time the function is called 
(uncached). I have cleared the cache (using redis cache). 

On Monday, 27 January 2014 23:38:30 UTC+8, Anthony wrote:
>
> Don't use XML() in your SMALL definition. Instead, create the entire HTML 
> helper object, call the .xml() method, store the resulting string in the 
> cache, and then after retrieving from cache, use XML() to display the 
> string in a view. For example:
>
> myoutput = XML(cache.disk('Hello', lambda: CAT(P('Hello'), TAG.small(
> 'World')).xml(),
>                           time_expire=100))
>
> {{=myoutput}}
>
>
>
> On Monday, January 27, 2014 10:06:59 AM UTC-5, Calvin wrote:
>>
>> Thanks Leonel-I tried this without any success. It still rendering 
>> incorrectly but this time consistently before and after caching.
>>
>> On Tuesday, 21 January 2014 03:34:39 UTC+8, Leonel Câmara wrote:
>>>
>>> You can use {{=XML(output, sanitize=False)}} to get the correct rendering
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to