UNPKG

@lesjoursfr/browser-tools

Version:

Some browser tools for events & DOM manipulation.

7 lines (6 loc) 262 B
/** * Escape the characters "&", "<", ">", '"', and "'" in the given string to their corresponding HTML entities. * @param {string} string the string to escape * @returns {string} the escaped string */ export declare function escape(string: string): string;