Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 ( #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
Node Status?
node history
Node Type: note [id://1168585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-10-27 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (257 votes). Check out past polls.

    Notices?