RE: Autoescaping using syntax modes

2006-09-13 Thread Gerald Richter
> > I wasn't expecting to see the escaped in such a way. > What is bizarre is that this behavior only seems to affect > the first [+ +] block. > Embperl works this way to allow local $escmode to work in normal pages. If you change $escmode and reset it again, the reset will done after the fi

RE: Autoescaping using syntax modes

2006-09-12 Thread Trey Hyde
On Fri, 2006-09-01 at 06:03 +0200, Gerald Richter wrote: > > But I'm having a little trouble with textareas. > > Given this input, > > test > > and > > $self->AddTag("textarea", ["id", "name", "rows", "cols"], > undef(), undef(), > { perlcode => q{ > print STDERR > "|".XML

RE: Autoescaping using syntax modes

2006-08-31 Thread Gerald Richter
> > But I'm having a little trouble with textareas. > > Given this input, > > test > > and > > $self->AddTag("textarea", ["id", "name", "rows", "cols"], > undef(), undef(), > { perlcode => q{ > print STDERR > "|".XML::Embperl::DOM::Node::iChildsText(%$n%)."|\n"; > _ep_rp(%

Autoescaping using syntax modes

2006-08-21 Thread Trey Hyde
For various reasons, we have escmode set to 0 globally in our application.  I'm in the process of converting said application to embperl 2 and I'd like to take advantage of the extendable syntax modes and do escaping a little more transparently (rather than the explicit escaping we are doing no