UNPKG

@technobuddha/library

Version:
13 lines (12 loc) 368 B
declare type Options = { /** escape all characters outside the 7-bit ASCII range */ escapeNonAscii?: boolean; }; /** * Escape a string for use in HTML * * @param input The string to escape * @param __namedParameters see {@link Options} */ export declare function escapeHTML(input: string, { escapeNonAscii }?: Options): string; export default escapeHTML;