Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Is it possible to use this librairy without extension? #50

Open
AxelBriche opened this issue Oct 18, 2020 · 2 comments
Open

Is it possible to use this librairy without extension? #50

AxelBriche opened this issue Oct 18, 2020 · 2 comments

Comments

@AxelBriche
Copy link

AxelBriche commented Oct 18, 2020

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.

@nick-zh
Copy link

nick-zh commented Jan 4, 2021

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

@kirkbushell
Copy link

strip_tags()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants