Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/sanitize

Index

Functions

Functions

sanitize

  • sanitize(dirtyHtml: string): string
  • Sanitise HTML from user input to ensure it is safe

    Parameters

    • dirtyHtml: string

      The unsanitized "dirty" HTML

    Returns string

    • Sanitized HTML

Generated using TypeDoc