How to use the xss.escapeHtml function in xss

To help you get started, we’ve selected a few xss examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sinnerschrader / aem-react-js / src / xss / JsXssUtils.tsx View on Github external
private escapeHtml(text: string): string {
    return xss.escapeHtml(text);
  }
  private filterHTML(text: string): string {

xss

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist

MIT
Latest version published 10 months ago

Package Health Score

76 / 100
Full package analysis