Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: perl dancer route template hashref pass complex json file to server issue (quotes)

by tye (Sage)
on Jul 26, 2016 at 18:30 UTC ( [id://1168585]=note: print w/replies, xml ) Need Help??


in reply to Re^4: perl dancer route template hashref pass complex json file to server issue (module)
in thread perl dancer route template hashref pass complex json file to server issue

alert('<%passtoserver%>');

So, try this:

alert('"\""')

What gets displayed? Same as with alert('"""').

If you are using a templating system to paste values into javascript, then use one that can actually do it correctly, including escaping things that need to be escaped.

- tye        

  • Comment on Re^5: perl dancer route template hashref pass complex json file to server issue (quotes)
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1168585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-26 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found