Collection & Json issues /questions.
Sample code:
{module_booking,a, collection="eventCollection"}
<script type="text/javascript" id="event-json">{{eventCollection.items | json}}</script>
Is fine because it will render the data in a script format.
I have a couple of questions/issues on this.
1. If you render a collection on the booking module, the collection works but the default module also still renders. I think this is a bug?
2. As with 2, if you render this as JSON data the default module still renders. Is it that things may work but some modules are not full converted?
3. When you render Json data it will render the html of any field with html in it, such as the description area. You can render in script and that is ok, but if you wanted to store in html data for example... data-value="" then it will render out that html. Is it possible to offer an escaped version of the json data?
I think I have found a few issues as well with Json and pulling description content with speach marks etc and not coming out as valid json as well.