Sample code for 30+ languages & platforms
DataFlex

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat DataFlex Downloads

DataFlex
Use ChilkatAx-win32.pkg

Procedure Test
    String s
    Handle hoSb
    Boolean iSuccess
    String sTemp1

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

    Get Create (RefClass(cComChilkatStringBuilder)) To hoSb
    If (Not(IsComObjectCreated(hoSb))) Begin
        Send CreateComObject of hoSb
    End

    Get ComAppend Of hoSb s To iSuccess
    Get ComEntityDecode Of hoSb To iSuccess

    // Output: é é é Latin small letter e with acute
    Get ComGetAsString Of hoSb To sTemp1
    Showln sTemp1


End_Procedure