On Sat, 11 Jul 2009, MK wrote: > parameters: { name: '<%$data[1]%>'....
Why would you expect the "h is for html" escaping to also work for Javascript? In fact, for JS, all you need is to escape single quotes: name: '<% $data | js %>' where the js escape is defined as: s/\'/\\'/g; Ok, this probably breaks in the face of control characters and stuff too, so it could be improved, but the point is that you don't want HTML escaping for js. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/ ------------------------------------------------------------------------------ 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