‘sanitize-xml’ simply sanitizes xml. Works in both Node.js and the browser. Lightweight. No dependencies.
sanitize-xml-string
micromark utility to sanitize urls
XML ID utilities for tracespace projects
Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis
Sanitize a string for use as a filename
rehype plugin to sanitize HTML
hast utility to sanitize nodes
Validate XML, Parse XML, Build XML without C/C++ based libraries
TypeScript definitions for sanitize-html
Reporter for jscpd. Generate a badges with copy/paste level.
A convertor between XML text and Javascript object / JSON text.
A url sanitizer
An evented streaming XML parser in JavaScript
XML utilities for the AWS SDK
Build XML from JSON without C/C++ based libraries
Utilities for determining if characters belong to character classes defined by the XML specs.
Validates XML name productions — Name, NCName, QName, NMToken, NMTokens — for XML 1.0 and 1.1
Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
A JS implementation of JSONPath with some additional operators
Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.
An evented streaming XML parser in JavaScript
Simple XML to JavaScript object converter.
Validates whether a string matches the production for an XML name or qualified name
XML sanitization with Loofah and Nokogiri.
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah also includes some HTML sanitizers based on `html5lib`'s safelist, which are a specific application of the general transformation functionality.