You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Angus Lees <gu...@inodes.org> on 2004/05/02 00:51:18 UTC

Re: embedded HTML tags

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