Javascript – DOMPurify (in ckeditor5 context) – how to keep (sub)strong tags included in a deleted(unwanted) span tag?
I use DOMPurify library (https://github.com/cure53/DOMPurify) to clean up html code copied from google docs. I would like to remove the span tags from the copied text but keep the text inside the tags as well as any strong tags included…