Sample code for 30+ languages & platforms
Node.js

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat Node.js Downloads

Node.js
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();