You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the Custom Theme JS editor, single and double quotation marks are escaped as \' and " respectively. This causes a console error Uncaught SyntaxError: Invalid or unexpected token and invalidates the custom script.
To Reproduce
Steps to reproduce the behavior:
Go to Customize -> CSS/JS Editor
Enter in any valid jQuery statement and publish
View page source, and see the incorrect markup.
Expected behavior
Quotation marks should be output in markup literally without being escaped.
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the Custom Theme JS editor, single and double quotation marks are escaped as
\'
and"
respectively. This causes a console errorUncaught SyntaxError: Invalid or unexpected token
and invalidates the custom script.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Quotation marks should be output in markup literally without being escaped.
Screenshots
![escaped-quotes](https://user-images.githubusercontent.com/8019842/83073379-9612ac00-a02d-11ea-84f0-407e1bcddce8.png)
![valid-javascript](https://user-images.githubusercontent.com/8019842/83073381-96ab4280-a02d-11ea-86aa-02f3b5d0686a.png)
![js-error](https://user-images.githubusercontent.com/8019842/83073439-afb3f380-a02d-11ea-8a46-7fdd91d780e0.png)
The text was updated successfully, but these errors were encountered: