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

Support for allowedAttributes and other options used in sanitize-html #29

Open
webmasterish opened this issue Mar 13, 2021 · 2 comments

Comments

@webmasterish
Copy link

Hello,

I came across a case where I needed to allow special attributes and found out that only allowedTags is passed as option to sanitize-html.

I propose allowing passing any options to sanitize-html.

Thanks

@Tessmore
Copy link
Owner

@webmasterish Sorry, I don't use sbd for in the browser. Someone added the support for it with sanitize html, so I am not sure on all available options. If it's minor I am happy to include passing on options, if you want you can open a PR :)

(I might be slow to react)

@webmasterish
Copy link
Author

Hey @Tessmore

Same here, only used server side. From what I recall it was minor or it would be quite simple to implement. Unfortunately I can't even remember what I did to resolve it, at least for the case I was working on. Wish I had the time to open a PR.

Thanks for getting back to me

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

2 participants