We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi and thanks for this useful library!
How can one flatten only tags with no attributes? eg
sanitizeHtml(document, '<span><span>This is into useless spans</span></span>. <i>Hello</i> <span style="color: #ff3333;">world!</span>', { allow_tags_deep: { '.*': '.*' }, flatten_tags_deep: { '.*': 'span' }, }); => "This is into useless spans. <i>Hello</i> <span style="color: #ff3333;">world!</span>"
(need to keep spans which have attributes)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi and thanks for this useful library!
How can one flatten only tags with no attributes? eg
(need to keep spans which have attributes)
The text was updated successfully, but these errors were encountered: