UNPKG

@ckeditor/ckeditor5-collaboration-core

Version:

Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.

20 lines (19 loc) 568 B
/** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module collaboration-core/utils/trim-html */ /** * Trims text inside a html tags and takes care of all closing tags. * * @param html * @param options Configuration options. * @param options.limit Limit of the characters. * @param options.suffix */ export declare function trimHtml(html: string, { limit, suffix }: { limit: number; suffix?: string; }): string;