html-sanitizer
html-sanitizer copied to clipboard
Is it possible to use this librairy without extension?
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.
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
strip_tags()