Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Fix js error, caused by replace single quotes #224

Merged
merged 1 commit into from Dec 7, 2019
Merged

Fix js error, caused by replace single quotes #224

merged 1 commit into from Dec 7, 2019

Commits on Mar 21, 2019

  1. Fix js error, caused by replace single quotes

    In some cases, script tags might contain js code document.write() with single quotes - like [wp_get_script_polyfill](https://developer.wordpress.org/reference/functions/wp_get_script_polyfill/). Replacing all single quotes lead to an SyntaxError. So add slashes in document.write arguments fixes this.
    dsturm committed Mar 21, 2019
    Copy the full SHA
    2c4392e View commit details
    Browse the repository at this point in the history