function snippet
snippet(body: string): string

Returns body as one line of plain text, for the reply bar above the composer and the reply line above a message.

Parameters

body: string

Return Type

string

Usage

import { snippet } from "src/utils/chat/message.ts";