On 07/12/2009 01:38:59 PM, hha...@gmail.com wrote:

> > parameters: { name: 'heap\'s moose',
> 
> This isn't incorrect, but strictly speaking you do not need that 
> '
>  
> there. I assume you rewrote the "h" escaper?

Actually no -- I was surprised by this.  I think I do need that there 
*anyway* since this is inlined in the html page.  

What is slightly strange to me is that I presume this means the regular 
|h will substitute &# stuff for escaped characters like \', but not for 
' itself.   Hmmm.  Will play around a bit more with this today.

>Random musing: The "javascript" escaper should probably enclose the  
>string in single quotes. This is safer, as the developer does not have 
>to remember to do that himself.

Not a bad idea, except since the developer does need to remember to use 
single quotes with a lot of js stuff, s/he might as well remember it
here just to keep things consistant and prevent ''this'' from 
occurring.

Thanks for catching my lack of "g" in the "j" handler, that's a real 
dumb-dumb.  WRT 

>$$ref =~ s/\\/\\\\/g;
>$$ref =~ s/'/\\'/g;

Since $$ref could actually be an entire paragraph of anything, methinks 
there is an impossible conundrum here and I will just have to lay down 
the law this way:

$$ref =~ s/\\*'/\\'/g;

So that no matter what, ' always has a preceeding \ but never more than 
one.

MK

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to