-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HtmlSanitizer] Add support for configuring the default action #57399
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
Conversation
fe8b477
to
cf29db7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but please mind the remaining minor comments.
Anyone up to do the remaining steps in FramewoorkBundle?
Remaining steps would be to make this configuration available through the semantic configuration ? I'd be happy to try it out. |
cf29db7
to
a36fc54
Compare
Alright I applied fixes for all feedback received. @Neirda24 yes it would be making sure one can specify a default action in the sanitizer config in FrameworkBundle. Great if you can do that thanks! |
…ck or allow unconfigured elements instead of dropping them
a36fc54
to
4fd1c4c
Compare
Thank you @Seldaek. |
The default action can be set to block or allow unconfigured elements instead of dropping them
Kinda replaces #49920 but it would need some work on the configuration handling side to allow configuring default actions. I am just using this as a library so I am not so keen on doing that part sorry but maybe @Neirda24 might want to take care of it if this PR gets accepted.