@textbus/browser
Version:
Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.
17 lines (16 loc) • 425 B
TypeScript
import { VElement } from '@textbus/core';
/**
* HTML 输出转换器
*/
export declare class OutputTranslator {
static singleTags: string[];
static simpleXSSFilter: {
text(text: string): string;
attrName(text: string): string;
attrValue(text: string): string;
};
private singleTagTest;
transform(vDom: VElement): string;
private vDomToHTMLString;
private replaceEmpty;
}