If a tag is not permitted, the contents of the tag are not discarded. Sanitize-html allows you to specify the tags you want to permit, and the permitted attributes for each of those tags. It is especially handy for removing unwanted CSS when copying and pasting from Word. It is well suited for cleaning up HTML fragments such as those created by CKEditor and other rich text editors. ![]() Sanitize-html provides a simple HTML sanitizer with a clear API.
0 Comments
Leave a Reply. |