Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

If product title contains a ' or " the json breaks resulting in a json error #10

Open
LS-Myron opened this issue Nov 4, 2020 · 0 comments

Comments

@LS-Myron
Copy link

LS-Myron commented Nov 4, 2020

Some of our product titles contain apostrophes or quotations. This breaks the json format for the product view image.

image

This is the full json:
{"initialImages":"[{\"thumb\":\"https:\\\/\\\/myron-m2.toolmax.nl\\\/media\\\/catalog\\\/product\\\/cache\\\/79e1e7bedd753adfc5e16d432c6f3132\\\/m\\\/a\\\/makita_dub361z.jpg\",\"img\":\"https:\\\/\\\/myron-m2.toolmax.nl\\\/media\\\/catalog\\\/product\\\/cache\\\/7c515c7d7aacb26b754ce8379b9a25b3\\\/m\\\/a\\\/makita_dub361z.jpg\",\"full\":\"https:\\\/\\\/myron-m2.toolmax.nl\\\/media\\\/catalog\\\/product\\\/cache\\\/e0d1dcca11a1ec209e27b8dfb2eb5b8c\\\/m\\\/a\\\/makita_dub361z.jpg\",\"caption\":\"Makita DUB361Z 2x18 V Bladblazer | zonder accu'sen lader (Accu Bladblazer) 1\",\"position\":\"2\",\"isMain\":true,\"type\":\"image\",\"videoUrl\":null},{\"thumb\":\"https:\\\/\\\/myron-m2.toolmax.nl\\\/media\\\/catalog\\\/product\\\/cache\\\/79e1e7bedd753adfc5e16d432c6f3132\\\/m\\\/a\\\/makita_tuinmachinesfb_14_1_41.jpg\",\"img\":\"https:\\\/\\\/myron-m2.toolmax.nl\\\/media\\\/catalog\\\/product\\\/cache\\\/7c515c7d7aacb26b754ce8379b9a25b3\\\/m\\\/a\\\/makita_tuinmachinesfb_14_1_41.jpg\",\"full\":\"https:\\\/\\\/myron-m2.toolmax.nl\\\/media\\\/catalog\\\/product\\\/cache\\\/e0d1dcca11a1ec209e27b8dfb2eb5b8c\\\/m\\\/a\\\/makita_tuinmachinesfb_14_1_41.jpg\",\"caption\":\"DUB361Z 2x18 V Bladblazer | zonderaccu's en lader\",\"position\":\"3\",\"isMain\":false,\"type\":\"image\",\"videoUrl\":null}]"}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant