Function unsanitize

  • Reverses the sanitization done by the sanitizeInput function.

    Usage:

    const ret = unsanitize('<div>hello world</div>');
    console.log(ret);

    Output:

    <div>hello world</div>
    

    Parameters

    • input: string

      The input string to unsanitize

    Returns string

    The unsanitized input string