Been battling this for a while now and i am not completely sure what the issue is but it does appear to be related to changes in PHP 5.5 (and i assume above).
I have a view which spits out json data which i then pull using views_embed_view(). Even though the views preview looks ok, the data pulled from views_embed_view() shows closing html tags being escaped:
</p> becomes <\/p>
i have this same site running on multiple dev machines and the only ones which exhibit this issue are those running PHP 5.5. Those running PHP 5.4 have output as expected.
I added a preprocess preg_replace to fix these but it is messing up binhex img data whichis also part of the views data; so need to find another solution.
Comments
Comment #2
liquidcms CreditAttribution: liquidcms commentedapparently there is a setting to not escape forward slashes in the views json settings - which wasn't required to be set prior to PHP 5.5.