mindee
    Preparing search index...

    Function cleanAndTruncate

    • Cleans a string with cleanSpecialChars and truncates it to maxLength characters, appending "..." when truncation occurs. Returns an empty string for null/undefined/empty input.

      Parameters

      • value: string | null | undefined

        String to clean and truncate.

      • maxLength: number

        Maximum length of the returned string (including the "..." suffix when truncated).

      Returns string