perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angus Lees <...@inodes.org>
Subject Re: embedded HTML tags
Date Sat, 01 May 2004 22:51:18 GMT
At Fri, 30 Apr 2004 09:33:44 -0400, Sreeram Bazaru wrote:
> Thanks for your prompt reply, I appreciate it. But [+ local
> $escmode=0; $my_variable_with_html_data; +] generates errors in new
> version2. So I just included in other block and it works fine. Have
> a great day.

In Embperl2, you want to do
  [+ do { local $escmode = 0; $my_variable_with_html_data } +]

And of course, be aware of cross-site scripting exploits, etc if
$my_variable_with_html_data contains untrusted data.

-- 
 - Gus

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


Mime
View raw message