Sample code for 30+ languages & platforms
Delphi ActiveX

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat Delphi ActiveX Downloads

Delphi ActiveX
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;

...

procedure TForm1.Button1Click(Sender: TObject);
var
s: WideString;
sb: TChilkatStringBuilder;

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

sb := TChilkatStringBuilder.Create(Self);

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

// Output: é é é Latin small letter e with acute
Memo1.Lines.Add(sb.GetAsString());
end;