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 one go, specially the "&" one. Test
> against:
>
> "<"
>

I'm not sure what you mean here.

If you have already html entities you should not escape them. If you do not
have html entities you should escape them.
The Escaping and unescaping works well, I already tested them before I sent
them.



>
> Right unescape "<", your code "<".
>
> --
> Best regards,
>  José
>

Ido


>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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 unescape "<", your code "<".

-- 
Best regards,
 José

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal