Support » Plugin: Disqus Comment System » Quotes in title give javascript error

  • Hi,

    I’ve noticed that if the title of a post contain quotes, it gives javscript errors.

    It could not be different because quotes are not escaped in the script section added by the plugin in the footer.

    TITLE:
    Recensione – “Advanced Google Adwords”

    IN FOOTER:

    <script type="text/javascript">
    	var disqus_shortname = "marcopanichi-com";
    	var disqus_title = "Recensione - "Advanced Google Adwords"";
    	var disqus_url = "http://www.marcopanichi.com/blog/recensione/advanced-google-adwords/";
    	var disqus_identifier = "marcopanichi-com-1538";
    </script>

    JS ERROR:
    Uncaught SyntaxError: Unexpected identifier

    http://wordpress.org/plugins/disqus-comment-system/

  • The topic ‘Quotes in title give javascript error’ is closed to new replies.