New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsEncode is losing encoded characters in string. #207
Comments
e.g. these string evaluate to the same when they are different jsEncode('content: "\e738"')
jsEncode('content: "e738"')
|
Did a bit of research / testing. It seems that js converts all backslash-escaped characters it doesn't recognize to unescaped values: > '\e738'.charCodeAt(0)
101 How could this possibly work in the original module(s)? Doesn't the js engine convert '\e738' to 'e738'? -- J |
Ah yes but the example I gave was a css file! I guess you need to make a
|
http://www.merttol.com/articles/code/introduction-to-css-escape-sequences.html On 13 August 2013 07:40, Gehan Gonsalkorale gehan.g@gmail.com wrote:
|
Here you go! \ is an escape character in JS so just need to handle that properly I think |
See this discussion: https://groups.google.com/d/msg/cujojs/Gt1Fof6tjOk/i5856nGUDWsJ
The text was updated successfully, but these errors were encountered: