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

Recommended XSS protection htmlDecode() isn't actually safe #117

Open
andymadge opened this issue Nov 7, 2014 · 1 comment
Open

Recommended XSS protection htmlDecode() isn't actually safe #117

andymadge opened this issue Nov 7, 2014 · 1 comment

Comments

@andymadge
Copy link

Even though the DIV never gets attached to the DOM, some browsers will still load images and fire events. See this comment on Stackoverflow

Using a textarea instead of e a DIV is safer, see here.

@andymadge
Copy link
Author

See http://jsfiddle.net/vcm8r35a/ to demo the problem

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

1 participant