@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
12 lines • 448 B
TypeScript
/**
* 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 = "<b>Hello world & underworld!</b>";
* const escaped = getStrEscaped(str);
* console.log(escaped); // => "<b>Hello world & underworld!</b>"
*/
export function getStrUnescaped(str: string): string;
//# sourceMappingURL=index.d.ts.map