Sample code for 30+ languages & platforms
JavaScript

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat v11.4.0 or greater.
JavaScript
// Decode the following HTML entities, replacing each with the character represented.
var s = "é é é Latin small letter e with acute";

var sb = new CkStringBuilder();

sb.Append(s);
sb.EntityDecode();

// Output: é é é Latin small letter e with acute
console.log(sb.GetAsString());