should be

{{from serializers import json}}
<script type="text/javascript" language="javascript">
        var news_feed = {{=XML(json(feed))}};
</script>

OR

<script type="text/javascript" language="javascript">
        {{=ASSIGNJS(var news_feed = feed)}};
</script>

@Nico. This is correct. The XML is not generating XML/HTML. It is simply 
saying that the value json(feed) is not to be escaped.


On Monday, 23 March 2015 02:13:43 UTC-5, Nico de Groot wrote:
>
> Why is the HTML rendered inside a script tag? 

-- 
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/d/optout.

Reply via email to