@maschinenlesbar.org/strahlenschutz-cli
    Preparing search index...

    Function serverTextForMessage

    • Server text that one of the client's own messages quotes — the kenn of a feature that answers a station query for another station — made safe and short (sanitizeServerText: escape sequences, control and format characters, the bidi controls among them, dropped; whitespace, line breaks and U+2028/U+2029 included, folded to one space, so it stays on one line; trimmed), then cut at max characters (200), never inside a surrogate pair (cutText), ending in "…" when cut.

      Parameters

      • text: string
      • max: number = 200

      Returns string