delphihtml-entities

Delphi: decode HTML entity


I'm using Delphi 2009 and want to decode an HTML encoded string, for example: ' to '. But I cannot find any built in function for doing this.


Solution

  • Look at the HTTPApp unit. HTTPDecode and HTMLDecode (as well as the Encode functions). You should find this in your Source/Win32/Internet folder.