perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Etchemaite <petch...@concept-micro.com>
Subject RE: Does escmode param work in 1.3.3 HTML::Embperl::Execute ?
Date Thu, 13 Jan 2005 08:23:20 GMT
Selon Gerald Richter <richter@ecos.de>:

    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: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message