Efter pushing data back and forth I have ended upp with this in a variable in javascript (browser)
"{"uri":"theDNS.com","ws":"wss://theDNS.com:8443/ws","username":"username","password":"Secret"}"
Rather then the desired "{"uri":"theDNS.com","ws":"wss://theDNS.com:8443/ws","username":"username","password":"Secret"}"
This seem to be part of the HTML4 standard, but is there some smart way to convert the chars in a string like this to "normal" chars? I currently do a replace for a number of common chars, but I figure there must be a better way.