Sample code for 30+ languages & platforms
Go

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat Go Downloads

Go
    // Decode the following HTML entities, replacing each with the character represented.
    s := "é é é Latin small letter e with acute"

    sb := chilkat.NewStringBuilder()

    sb.Append(s)
    sb.EntityDecode()

    // Output: é é é Latin small letter e with acute
    fmt.Println(*sb.GetAsString())

    sb.DisposeStringBuilder()