split-html

Split HTML into two valid fragments wherever a certain selector is matched. Works on the server side.

sanitize-html

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis