@web3r/flowerkit
Version:
Tree-shakable JavaScript and TypeScript utility library for frontend/browser apps: DOM, events, arrays, objects, strings, date, JSON, and network helpers (ESM/CJS, SSR-friendly).
14 lines (13 loc) • 538 B
text/typescript
export type TGetStrUnescapedArgs = Parameters<typeof getStrUnescaped>;
export type TGetStrUnescapedReturn = ReturnType<typeof getStrUnescaped>;
/**
* Unescapes HTML entities back to their characters.
* Unescaped: `& < > " '`
* @param {string} str Source string
* @returns {string} Unescaped string
* @throws {TypeError} If str is not a string
* @example
* getStrUnescaped("<b>Hello & world</b>");
* // => "<b>Hello & world</b>"
*/
export declare const getStrUnescaped: (str: string) => string;