Selon Gerald Richter <[EMAIL PROTECTED]>:
Hi,
> > But beside the 'escmode' => 1 parameter,
> > HTML::Embperl::Execute doesn't seem to HTML-escape <, >, etc.
>
> Escmode => 1 does not escape the source text, but it escape only the output
> done by Perl code.
Ok, as if 'input' was a full page, I understand now.
> To escape your text use
>
> [- $epreq = shift -]
> ....
> $r = $epreq -> Escape($t, 1) ;
Yes, I found other posts mentionning "the undocumented Escape()", but it doesn't
seem to work with Embperl 1.3.3 (the version bundled with Debian stable) :
[21048]ERR: 24: Line 24: Error in Perl code: Can't locate object method "Escape"
via package "HTML::Embperl::Req" (perhaps you forgot to load
"HTML::Embperl::Req"?) at /var/www/.../test2.html line 8.
Maybe I should find a way to upgrade to 1.3.6...
Oh, by the way, that site, hosted by a Celeron 400MHz with 256MB of memory,
"pushes" around 500k hits/day, 9.5GB/day, 25k visitors/day... I've always been
very pleased by Embperl.
Thanks for your time,
Best regards,
Pierre.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]