how do I remove all the default allowed html and css tags ? #357
Answered
by
mganss
raksha-shanbhag
asked this question in
Q&A
-
^title |
Beta Was this translation helpful? Give feedback.
Answered by
mganss
Jun 14, 2022
Replies: 2 comments 4 replies
-
Do you mean disallow all elements that are allowed by default? var s = new HtmlSanitizer();
s.AllowedTags.Clear();
s.AllowedTags.Add("b"); This will allow only the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
raksha-shanbhag
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you mean disallow all elements that are allowed by default?
This will allow only the
<b>
element and disallow all others.