UNPKG

@web3r/flowerkit

Version:

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

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