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

liquidcms created an issue. See original summary.

liquidcms’s picture

Status: Active » Fixed

apparently 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.