Sample code for 30+ languages & platforms
Delphi DLL

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat Delphi DLL Downloads

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

...

procedure TForm1.Button1Click(Sender: TObject);
var
s: PWideChar;
sb: HCkStringBuilder;

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

sb := CkStringBuilder_Create();

CkStringBuilder_Append(sb,s);
CkStringBuilder_EntityDecode(sb);

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

CkStringBuilder_Dispose(sb);

end;