grampelberg/janky.post

Problem with quotes

Opened this issue · 0 comments

I am using the tornado server as mentioned in the readme. I got stuck in the following problem. The quotes get substitute with " inside script tag. Any suggestions on how to solve the problem ?

<html><head></head>
<body><script type="text/javascript">
  window.name = &quot;{\&quot;status\&quot;: \&quot;ok\&quot;, \&quot;data\&quot;: \&quot;foobar\&quot;}&quot;;
Uncaught SyntaxError: Unexpected token &
  location.href = &quot;http://localhost:8000/janky&quot;;
</script></body></html>