Node.js
Node.js
StringBuilder EntityDecode
Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
// Decode the following HTML entities, replacing each with the character represented.
var s = "é é é Latin small letter e with acute";
var sb = new chilkat.StringBuilder();
sb.Append(s);
sb.EntityDecode();
// Output: é é é Latin small letter e with acute
console.log(sb.GetAsString());
}
chilkatExample();