UNPKG
entity-decode
Version:
latest (3.0.0)
3.0.0
2.0.2
2.0.1
2.0.0
1.0.1
1.0.0
Environment agnostic entity decoder
github.com/shrpne/entity-decode
shrpne/entity-decode
entity-decode
/
types
/
browser.d.ts
7 lines
(6 loc)
•
243 B
TypeScript
View Raw
1
2
3
4
5
6
7
/** * 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
;