In the Internet/HTTPApp.pas unit
function HTTPDecode(const AStr: AnsiString): AnsiString;
function HTTPEncode(const AStr: AnsiString): AnsiString;
function HTMLEncode(const AStr: String): String;
function HTMLDecode(const AStr: String): String;
HTH
David
Original Message
Is there a nice easy function to convert a delphi string to one that is
suitable for rendering in a browser (converting to amp; etc...).
--
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
I use the StrHtmlEncode method in the Indy IdStrings.pas unit.
It's pretty basic, as you will see. ;-)
HTH,
Conor
-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Alister Christie
Is there a nice easy function to convert a
search for HTMLCode or URLEncode
There are a number of functions of the web for doing it.
There is also a delphi unit that contains somethign like it, but I cant
remember its name. It starts with HTML tho :-)
Jeremy
On Wed, Jul 28, 2010 at 11:33 AM, Alister Christie
alis...@salespartner.co.nz
Not quite as comprehensive as I was after, but I guess I'll start with
that - cheers.
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
On 28/07/2010 11:55 a.m., Conor Boyd wrote:
I use the StrHtmlEncode