Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 surveying the Monastery: (2)
As of 2025-07-13 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.