Skip to content

Instantly share code, notes, and snippets.

@abhishek0
Created January 10, 2014 07:00
Show Gist options
  • Save abhishek0/5af8fa2cedb7611d0164 to your computer and use it in GitHub Desktop.
Save abhishek0/5af8fa2cedb7611d0164 to your computer and use it in GitHub Desktop.
Why is the "<" character not being printed?
{"asset":{"key":"templates/404.liquid","public_url":null,"value":"\u003Cdiv id=\"404\" class=\"row\"\u003E\n \u003Cdiv class=\"span12\"\u003E\n \n \u003Ch2\u003EPage not found\u003C/h2\u003E\n \u003Cspan class=\"subtext\"\u003ESorry, we couldn't find this page.\u003C/span\u003E\n \n \u003C/div\u003E\n\u003C/div\u003E","created_at":"2013-12-30T01:51:44-05:00","updated_at":"2013-12-30T01:51:44-05:00","content_type":"text/x-liquid","size":171,"theme_id":5891557}}
div id="404" class="row"
div class="span12"
h2Page not found/h2
span class="subtext"Sorry, we couldn't find this page./span
/div
/div
$stderr.puts response.body
body = JSON.parse(response.body)
$stderr.puts body["asset"]["value"]
{"asset":{"key":"templates/404.liquid","public_url":null,"value":"\u003Cdiv id=\"404\" class=\"row\"\u003E\n \u003Cdiv class=\"span12\"\u003E\n \n \u003Ch2\u003EPage not found\u003C/h2\u003E\n \u003Cspan class=\"subtext\"\u003ESorry, we couldn't find this page.\u003C/span\u003E\n \n \u003C/div\u003E\n\u003C/div\u003E","created_at":"2013-12-30T01:51:44-05:00","updated_at":"2013-12-30T01:51:44-05:00","content_type":"text/x-liquid","size":171,"theme_id":5891557}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment