Reason for escaping forward slashes in settings_data.json?

Shopify Partner
6 0 10

Hi there, 


I am wondering if anyone knows why the default theme (Debut) settings_data.json file is escaping forward slashes? For example: "social_facebook_link": "https:\/\/\/placeholder" ? Are the escapes necessary? My theme is running fine without those in the settings_data.json file, however I would like to confirm that all is well without the escapes.


Thank you


New Member
1 0 0

The JSON implementation used by Shopify escapes all "/" characters in JSON, so that an unescaped "</script>" tag doesn't throw the whole thing.

It's discussed in this pull request: