Normalize text by applying inputFormatter function to each character.

  • Parameters

    • text: string

      The input text to normalize.

    • Optionalconfig: Partial<IConfig>

      The configuration object.

      • inputFormatterSymbol

        The symbol used in input formatter.

      • inputFormatterAllowed

        The list of allowed characters in input formatter.

      • inputFormatterReplace

        The mapping of characters to be replaced in input formatter.

      • inputFormatterTemplate

        The template used in input formatter.

      • inputFormatter

        The input formatter function to apply on each character.

    Returns string

    • The normalized text.