Function unsanitizeInput

  • Reverses the sanitization done by the sanitizeInput function.

    Usage:

    const ret = unsanitizeInput('<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