UNPKG

@eclipse-scout/core

Version:
27 lines 917 B
import { CachedElement } from '../index'; /** * Replaces character HTML entities (e.g. &amp;nbsp;, &amp;gt;, etc.). */ export declare class PlainTextEncoder { protected _cachedElement: CachedElement<HTMLTextAreaElement>; constructor(); encode(text: string, options?: PlainTextEncoderOptions): string; removeAttributeValues(text: string): string; } export interface PlainTextEncoderOptions { /** * If true, multiple consecutive empty lines are reduced to a single empty line. Default is false. */ compact?: boolean; /** * If true, empty lines at the beginning and the end of the text are removed. Default is true. * * Spaces at the beginning and at the end of *every* line are *always* removed. */ trim?: boolean; /** * Removes font icons. Default is false. */ removeFontIcons?: boolean; } //# sourceMappingURL=PlainTextEncoder.d.ts.map