-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Loosing onclick functionality after parse #73
Comments
Thanks for opening the issue @jasan-s The Because there's an XSS security risk when evaling the The best solution is to use the |
@remarkablemark thanks for that, I realized the intentional removal of dirty html afterward. I solved it using the following : |
@remarkablemark i think there should be an option for bypassing this. when a trusted backend sends html code, its much needed to handle event listners automatically |
@kasvith the recommended approach is to use the |
see https://jsfiddle.net/kvgz36eh/.
notice that the onclick methods are lost post parsing , thus on click the hidden input field value is never updated.
The text was updated successfully, but these errors were encountered: