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

Element.fromString: allow customizing of a sanitizing function #2630

Closed
ashklianko opened this issue Jun 20, 2022 · 0 comments
Closed

Element.fromString: allow customizing of a sanitizing function #2630

ashklianko opened this issue Jun 20, 2022 · 0 comments
Assignees
Labels
Refactoring Code improvements

Comments

@ashklianko
Copy link
Member

When creating elements from a string we run our source string through a DOMPurify sanitizing function without params. It appeared that in some cases we need to allow certain tags or attributes.
Add an optional param to this function with a custom config having tags/attributes fields on demand and give it to a sanitizing function

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

No branches or pull requests

2 participants