Closed greg-md closed 2 years ago
I can reproduce this issue. The intent was made clear by the code that cleans out the content if an allowed source is present, so it doesn't make any sense to keep the content if no source at all is present.
Thank you for fixing it fast! 🎉
I want to allow
script
tags only withsrc
attributes from specific domains, butnonTextTags: ['script']
option doesn't remove the code contents from it.Or, is there other way to remove script contents?
To Reproduce
Expected behavior
Should return:
Describe the bug
It doesn't cleanup script contents. Returns the same:
Details
It doesn't work in latest version
2.5.0
.