-
Notifications
You must be signed in to change notification settings - Fork 341
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
Html Tags White list #106
Comments
I just ran into this ... by default, sanitization should probably just remove the script tag. I've been fixing these in my own fork as the original author hasn't been able to get to these issues. I'll reply soon with a patch |
The core problem is that the author is using filter_var to do this http://php.net/manual/en/function.filter-var.php instead of http://php.net/manual/en/function.strip-tags.php ... |
there's a $basic_tags which is a decent white-list but this can't be static for your purposes ... so I'll make an $instance_tags that can be changed. |
ok see #139 for this in isolation ... you can also use my branch at https://github.com/kristopolous/GUMP/tree/106-html-tags-white-list or you can use my master branch which is all of my bugfixes merged ... they should be pretty safe fixes but YMMV |
Hmm.. I see. Well, I think that something we had already pending is to create a filter and adapt it to use some third-party HTML filtering library. |
This is already added in Docs as TODO. |
I work with advanced method:
In action this good work and sanitize all input data. for story field in need to add html tags like
<p><img><table>
but this class sanitize all $_POST and remove all html tags.how do can i add white list for html tags?!
The text was updated successfully, but these errors were encountered: