Re[4]: [fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-25 Thread José Mejuto
Hello FPC-Pascal, Wednesday, May 25, 2011, 8:33:57 AM, you wrote: >> "<" i> I'm not sure what you mean here. That's an already escaped html. Let it be a mini htmlpage: -<- i> If you have already html entities you should not escape them. If you do not i> have html entities you should esca

RE : [fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-25 Thread Ludo Brands
freepascal.org] De la part de ik Envoyé : mardi 24 mai 2011 10:09 À : FPC-Pascal users discussions Objet : Re: [fpc-pascal] fpWeb and html and uri escaping/unescaping elements On Tue, May 24, 2011 at 00:28, ik wrote: On Tue, May 24, 2011 at 00:23, Michael Van Canneyt wrote: On Tue, 24 May 2

Re: Re[2]: [fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-24 Thread ik
On Tue, May 24, 2011 at 12:21, José Mejuto wrote: > Hello FPC-Pascal, > > Tuesday, May 24, 2011, 10:09:03 AM, you wrote: > > i> I've created a patch with the Escape and unEscape functions, and place > it > i> here: http://bugs.freepascal.org/view.php?id=19407 > > Un/escapeHTML parsing must be in

Re[2]: [fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-24 Thread José Mejuto
Hello FPC-Pascal, Tuesday, May 24, 2011, 10:09:03 AM, you wrote: i> I've created a patch with the Escape and unEscape functions, and place it i> here: http://bugs.freepascal.org/view.php?id=19407 Un/escapeHTML parsing must be in one go, specially the "&" one. Test against: "<" Right unescap

Re: [fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-24 Thread ik
On Tue, May 24, 2011 at 00:28, ik wrote: > > > > On Tue, May 24, 2011 at 00:23, Michael Van Canneyt > wrote: > >> >> >> On Tue, 24 May 2011, ik wrote: >> >> Hello, >>> >>> Does fpWeb have any method/function that escape and un-escape html and >>> URI elements ? >>> >> >> Yes. >> >> in fphttpcli

Re: [fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-23 Thread ABorka
Hello, Does fpWeb have any method/function that escape and un-escape html and URI elements ? Thanks, Ido There are Function HTTPDecode(const AStr: String): String; Function HTTPEncode(const AStr: String): String; in unit httpdefs.pp of fcl-web. AB _

Re: [fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-23 Thread ik
On Tue, May 24, 2011 at 00:23, Michael Van Canneyt wrote: > > > On Tue, 24 May 2011, ik wrote: > > Hello, >> >> Does fpWeb have any method/function that escape and un-escape html and URI >> elements ? >> > > Yes. > > in fphttpclient: > > Function EncodeURLElement(S : String) : String; > Function

Re: [fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-23 Thread Michael Van Canneyt
On Tue, 24 May 2011, ik wrote: Hello, Does fpWeb have any method/function that escape and un-escape html and URI elements ? Yes. in fphttpclient: Function EncodeURLElement(S : String) : String; Function DecodeURLElement(Const S : String) : String; We should maybe move them to URIParser

[fpc-pascal] fpWeb and html and uri escaping/unescaping elements

2011-05-23 Thread ik
Hello, Does fpWeb have any method/function that escape and un-escape html and URI elements ? Thanks, Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il ___ fpc-pascal maillist - fpc-pascal@lists.freep