https://bugzilla.wikimedia.org/show_bug.cgi?id=32858
--- Comment #27 from mybugs.m...@gmail.com 2011-12-23 20:37:28 UTC --- (In reply to comment #19) > You only need to add backslashes in a few cases which triggers PST to prevent > the script being broken: > > * var str = "{\{subst:template}}"; > * var str = "~~\~~"; Users who try to use JSHint[1] to validate a code which uses this will get a "Bad escapement" error. Although they can just change it to var str = "{" + "{subst:template}}"; var str = "~~" + "~~"; to avoid the errors, having to fix every time these sequences of characters which have special meaning in wiki markup is a PITA. Valid JavaScript code should not have have unexpected results when inside of a wiki page. [1] The tool http://www.jshint.com/ is recommended by the developers, at [[mw:Manual:Coding_conventions/JavaScript#Performance_and_best_practices]] -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l