Documents for @litert/utils-string
    Preparing search index...

    Function replaceEvilSpaceChars

    • Replace all evil space characters in a string with a specified character.

      These characters are not visible in the string, but they are present in the string. In many cases, these characters are pretending to be spaces or even hidden themselves, which make program malfunction.

      Parameters

      • str: string

        The string to process

      • to: string = ''

        The character to replace evil spaces with (default is an empty string)

      Returns string

      The processed string with evil spaces replaced