Skip to content
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

Using \n in script tag will result in actual line break sent to client #58

Open
danbulant opened this issue Jul 8, 2020 · 1 comment

Comments

@danbulant
Copy link

Hi.

I have overall positive experience with dejs, but found a rather interesting bug: when you use \n, it will result in line break being sent to the client (which can break scripts). I found this when trying to use newline in console log and it resulted in script having invalid syntax (as double quote strings cannot be multiline).

This can be fixed by escaping it again, but I think it shouldn't be needed to do only to support ejs.

@syumai
Copy link
Owner

syumai commented Jul 9, 2020

@danbulant I'll check this later, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants