Closed dhermes closed 9 years ago
@duilio Any chance we can get some of these reviewed?
Unfortunately jinja2 does not have a default js escaping filter (http://stackoverflow.com/questions/12339806/escape-strings-for-javascript-using-jinja2), this solution won't work in some edge cases but it's fine to fix problems with single quotes, so I'm going to accept it anyway.
Thanks for the merge. I made this change due to the missing filter (as you mention).
I'm fairly certain this will always work. What corner cases do you have in mind?
Causes the JS to fail if a title contains a single quote (for example an apostrophe).
Also making whitespace consistent and removing tab characters in 'disqus_script.html'.