sbd icon indicating copy to clipboard operation
sbd copied to clipboard

Support for `allowedAttributes` and other options used in `sanitize-html`

Open webmasterish opened this issue 5 years ago • 2 comments

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

webmasterish avatar Mar 13 '21 19:03 webmasterish

@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)

Tessmore avatar May 11 '21 15:05 Tessmore

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

webmasterish avatar May 19 '21 09:05 webmasterish