import __unescape from 'unescape'; /** * @name unescapeHtml * @namespace shared.html * @type Function * @platform js * @platform node * @status stable * * This function allows you to unescape some html characters like <, etc... * * @param {String} html The html to unescape * @return {String} The unescaped html * * @snippet __unescapeHtml($1) * * @todo tests * * @example js * import { __unescapeHtml } from '@lotsof/sugar/html'; * __unescapeHtml('<s-code-example>'); // => * * @see https://www.npmjs.com/package/unescape * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export default function __unescapeHtml(html: string): string { // @ts-ignore return __unescape(html); }