UNPKG

@web3r/flowerkit

Version:

A collection of more than 60 often used utility JS functions that simplify frontend development.

12 lines 451 B
/** * Gets a string with replaced special chars on their HTML entities. * @param str{String} - source string * @return {string} * @example * // How to escape special HTML characters? * const str = "<b>Hello world & underworld!</b>"; * const escaped = getStrEscaped(str); * console.log(escaped); // => "&lt;b&gt;Hello world &amp; underworld!&lt;/b&gt;" */ export function getStrEscaped(str: string): string; //# sourceMappingURL=index.d.ts.map