Re: [htmltmpl] escaping quotes [was: (no subject)]
Brought to you by:
samtregar
|
From: Philip S T. <phi...@gm...> - 2002-07-08 07:20:32
|
On Mon, 8 Jul 2002, Sam Tregar wrote:
> escape => {
> quote => sub { $$_[0] =~ s/(['"])/\$1/g; }
> }
>
> Or possibly setting $_:
>
> escape => {
> quote => sub { s/(['"])/\$1/g; }
> }
>
> But that might be just a little too cute.
Yeah, seems good enough, except you'd have to make that \\$1
|