preserve
Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.
Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.
Serialize (encode) HTML character references
Escape strings for use as JavaScript string literals
Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS
Simple SQL escape and format for MySQL
Parse JavaScript one character at a time to look for snippets in Templates. This is not a validator, it's just designed to allow you to have sections of JavaScript delimited by brackets robustly.
Sanitize a string for use as a filename
ansi control sequences for terminal cursor hopping and colors
Properly escape JSON for usage as an object literal inside of a `<script>` tag
A cross-platform library for safely passing strings through shells
Escape LaTeX special characters with Javascript
Escapes input characters to be used in regular expressions.
Strip ANSI color codes from a string. No dependencies.
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
Escape and stringify an array of arguments to be executed on the shell
Display images in iTerm
string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.
Strips ANSI Control Characters from string or stream
Secure XSS Filters - Just sufficient output filtering to prevent XSS!