The JSON feed I’m working with has an html attribute-value pair which contains a list entry’s worth of html e.g. :
{
html: "<li vocab=\"http:\/\/schema.org\/\" ...<\/li>"
}
perhaps not ideal given JSON ideals as I understand them from googling today, but the JSON feed is what was delivered, so I’m trying to work with it, and the example on https://www.thorntech.com/2012/07/4-things-you-must-do-when-putting-html-in-json/ includes an escaped html img tag.
Further testing showed that if I viewed the generated JSON feed with a user defined blank design:
<MySource_AREA id_name="body" design_area="body" />
then the generated JSON contains the img tags:
<div class=\"float-left-responsive eventlist__image\"> <img class=\"img-thumbnail\" src=\"https:\/\/squiz-matrix.its.waikato.ac.nz\/__matrix-data\/assets\/image\/0027\/65538\/varieties\/280w.jpg\" alt=\"\" \/> <\/div>
Problem occurs when I’m using a JSON design of:
<MySource_PRINT id_name="__global__" var="content_type" content_type="application/javascript" />
<MySource_area id_name="body" design_area="body">
<MySource_SET name="format" value="text" />
</MySource_AREA>
??