import type { IFilterXSSOptions } from "xss"; /** * 转义 HTML 代码,使其可以插入到 HTML 中显示。 * @example * escapeHtml("
123
") // "<div>123</div>" */ export declare function escapeHtml(html: string): string; /** * 对 HTML进行 XSS 过滤 * 与 escapeHtml 不同,xss 只会转义危险的 HTML 内容,如 script 标签,而不会转义普通的 HTML 标签 * @example * xss("
123
") // "
123<script>alert('xss')</script>
" */ export declare function xss(html: string, options?: IFilterXSSOptions): string; //# sourceMappingURL=html.d.ts.map