guardian / scribe-plugin-curly-quotes

5 stars 5 forks source link

Potentially changes quote characters in <script> blocks #30

Open kand opened 9 years ago

kand commented 9 years ago

Given some block in the editor such as this:

<div><script>var a = "";</script></div>

No check is done to ensure that this is a script block and, as such, the script node text is treated as any other text, transforming the quotes into javascript-invalid curly quotes.

Is there a way to prevent the plugin from parsing script elements?