UNPKG

html-truncate-ts

Version:

TypeScript library for truncating HTML strings while preserving HTML tags and structure

6 lines 427 B
import { TruncateOptions } from './truncate.types'; export declare const removeImageTag: (string: string) => string; export declare const dumpCloseTag: (tags: string[]) => string; export declare const getTag: (string: string) => string; export declare const getEndPosition: (string: string, maxLength: number, total: number, tailPos?: number, options?: TruncateOptions) => number; //# sourceMappingURL=truncate.helpers.d.ts.map