At Thu, 23 May 2002 09:59:11 -0400, Kee Hinckley wrote:
> At 9:12 PM -0700 5/22/02, [EMAIL PROTECTED] wrote:
> >On Wed, 22 May 2002 13:11:27 -0400 Kee Hinckley said:
> >> This <a href="[- foo(\%fdat) -]"> passes the first element of
> >
> >I assume you meant <a href="[+ foo (\%fdat) +]"> ?
>
> It doesn't matter to the issue, but actually no. In this case I need
> to output a URL, which means I need to do my own escaping, which
> means i need to print to OUT rather than make use of the return
> value. (Be nice to have a way to get around that.)
err.. from HTML::Embperl(3pm):
$escmode
Turn HTML and URL escaping on and off. The default is on
($escmode = 3).
[...]
$escmode = 3 (or 7)
The result of a Perl expression is HTML-escaped (e.g.,
`>' becomes `>') in normal text and URL-escaped
(e.g., `&' becomes `%26') within of A, EMBED, IMG,
IFRAME, FRAME and LAYER tags.
so <a href="[+ $foo +]">[+ $foo +]</a> should "just work".
if you want to force URL-escaping, you can set $escmode = 2 (or 6).
--
- Gus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]