html-sanitizer icon indicating copy to clipboard operation
html-sanitizer copied to clipboard

Is it possible to use this librairy without extension?

Open AxelBriche opened this issue 3 years ago • 2 comments

Hello, I want disallow all html tags by default. I have read the doc but not find an option for use this library without use an extension (who provide by default a lot of allowed tags).

Is it possible to only allow a list of specific tags? I want only allow: p, br, strong, i, u

Thanks.

AxelBriche avatar Oct 18 '20 20:10 AxelBriche

I was just wondering the same thing, from what i saw from the docs, i think the easiest way is to create your own extension, that only allows these tags. So basically something like this, but only with your tags

nick-zh avatar Jan 04 '21 13:01 nick-zh

strip_tags()

kirkbushell avatar May 14 '24 13:05 kirkbushell