html-decode Unescape HTML entities
Examples
Unescape HTML entities back to text
Usage
"<p>Hello & welcome</p>" | html-decode Decode HTML entities from scraped product listing text
Usage
"Top sellers: Widget&trade; & Gadget&reg; —..." | html-decode Convert HTML entities back to readable text for editing
Usage
"<h1>Welcome!</h1><p>You&#39;re signed ..." | html-decode View source
(input)=>{
const el = document.createElement("textarea");
el.innerHTML = input;
return el.value;
}