• Remove characters that do not appear in the whitelist.

    Parameters

    • input: string
    • chars: string

      The characters are used in a RegExp and so you will need to escape some chars, e.g. whitelist(input, '\\[\\]').

    Returns string

Generated using TypeDoc