mazey
    Preparing search index...

    Function sanitizeInput

    • Sanitizes user input to prevent XSS attacks.

      Usage:

      import { sanitizeInput } from "mazey";

      const ret = sanitizeInput("<div>hello world</div>");
      console.log(ret);

      Output:

      &lt;div&gt;hello world&lt;/div&gt;
      

      Parameters

      • input: string

        The input string to sanitize

      Returns string

      The sanitized input string