Truncates a piece of text to the desired maximum length and appends '...' to the end.

  • Parameters

    • text: string
    • size: number = 512

    Returns string