perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harald Becker" <harald.bec...@webscope.de>
Subject RE: special character replacements in output
Date Thu, 14 Aug 2003 17:19:39 GMT
[+ do{ local $escmode=0; $detail_html} +]

should work...
You can also skip escaping html characters if optRawInput was set (e.g.
$ENV{EMBPERL_OPTIONS} = 16)

Harald


> -----Original Message-----
> From: girardot [mailto:girardot@mac.com] 
> Sent: Thursday, August 14, 2003 7:06 PM
> To: embperl@perl.apache.org
> Subject: special character replacements in output
> 
> 
> 
> 
> I am trying to build some html, store it in a variable and 
> then just output it later in the page.
> 
> But it translates my  < and > into the html entities.
> 
> I read the syntax page and i thought i understood it to say i 
> should escape my special characters to avoid the replacement 
> so i wrote this code:  $detail_html .= 
> "\<tr\>\<td\>".$data121[0]."\</td\>\</tr\>\n";
> 
> but when i do this:
> 
> [+ $detail_html +]
> 
> 
> It has translated the  < and > to &lt: and &gt;
> 
> What am i not doing correctly? I can't quite seem to figure 
> out such a simple thing.
> 
> Cheers,
> Blake Girardot
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message