Search results
16 packages found
Sanitize JSON for possible malicious HTML
A custom utility for converting URL path patterns to regular expressions, supporting dynamic segments, wildcards, and special character escaping.
Escape a string for use in HTML or the inverse
- escape
- unescape
- html
- entity
- entities
- escaping
- sanitize
- sanitization
- utility
- template
- attribute
- value
- interpolate
- xss
- View more
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.
Utility functions for working with regular expressions
Escape and un-escape delimiters in templates. Tested with Lo-Dash, underscore and Handlebars syntax, but could be used with other template engines/syntaxes as well. This is similar to the process used by Yeoman on escaped templates in generators.
- RegExp
- assemble
- atpl
- cache
- compile
- consolidate
- content
- data
- delimiters
- delims
- demlim
- demlimiter
- demlimiters
- demlims
- View more
A cross-platform library for safely passing strings through shells
ES6 template literal tag to encode URI components
Escape a string for a lucene query. Effectively removes all special characters.
Converts XML AST structures (like the ones generated by xml-reader) to XML strings
- formatter
- indent
- output
- printer
- render
- renderer
- serialize
- serializer
- string
- stringify
- tostring
- writer
- xml
- document
- View more
ES6 Template string function for encoding text to HTML
SQL like prepared statements for regular expressions
Utility methods for escaping according to OWASP.
Parses commands with a specified prefix, delimited by spaces, with support for double & single quotations, and no need for escaping.
Escape a string for use in HTML or the inverse
- escape
- unescape
- html
- entity
- entities
- escaping
- sanitize
- sanitization
- utility
- template
- attribute
- value
- interpolate
- xss
- View more
A small package to escape spacing chacaters (e.g. newlines) in strings.