UNPKG

entity-decode

Version:

Environment agnostic entity decoder

7 lines (6 loc) 243 B
/** * Decodes HTML entities in a string using browser's native DOM API. * @param {string} html - The HTML string containing entities to decode * @returns {string} The decoded string */ export default function decode(html: string): string;