Merge pull request #3965 from oderwat/hara-php-fix-singlequote

Fix PHP and JS codegen to not escape single quotes in strings anymore.
This commit is contained in:
Andreas Rumpf
2016-03-14 21:44:09 +01:00

View File

@@ -211,7 +211,6 @@ proc escapeJSString(s: string): string =
of '\e': result.add("\\e")
of '\v': result.add("\\v")
of '\\': result.add("\\\\")
of '\'': result.add("\\'")
of '\"': result.add("\\\"")
else: add(result, c)
result.add("\"")