UNPKG

xss-defender

Version:

A standalone library for XSS sanitization and detection.

23 lines (22 loc) 427 B
/** * Default sanitization configuration. */ export const DEFAULT_SANITIZATION_CONFIG = { allowedTags: [ "p", "br", "b", "i", "ul", "ol", "li", "span", "div", "a", "img", ], allowedAttributes: ["id", "class", "style", "href", "target", "src"], stripIgnoreTag: false, enableLogging: false, logFormat: "simple", };