{"id":11722538,"date":"2019-07-11T14:33:45","date_gmt":"2019-07-11T14:33:45","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/javascript-double-quotes\/"},"modified":"2019-07-11T14:33:45","modified_gmt":"2019-07-11T14:33:45","slug":"javascript-double-quotes","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/javascript-double-quotes\/","title":{"rendered":"javascript double quotes"},"content":{"rendered":"<p>I am trying to insert javascript in the &#8220;onclick&#8221;-field for a link button, but my javascript has a string encapsulated by single quotes. I discovered the plugin replaces every stand single or double quotes by strange rounded quotes. this way my javascript does not work and it will throw an &#8220;Uncaught SyntaxError: Invalid or unexpected token.&#8221;<\/p>\n","protected":false},"template":"","class_list":["post-11722538","topic","type-topic","status-publish","hentry","topic-tag-button","topic-tag-javascript","topic-tag-link","topic-tag-onclick"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11722538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11722538\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11722538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}