{"action":"created","issue":{"url":"https://api.github.com/repos/jadejs/jade/issues/1884","labels_url":"https://api.github.com/repos/jadejs/jade/issues/1884/labels{/name}","comments_url":"https://api.github.com/repos/jadejs/jade/issues/1884/comments","events_url":"https://api.github.com/repos/jadejs/jade/issues/1884/events","html_url":"https://github.com/jadejs/jade/issues/1884","id":60238376,"number":1884,"title":"Option to escape angle brackets in text blocks?","user":{"login":"evanw","id":406394,"avatar_url":"https://avatars.githubusercontent.com/u/406394?v=3","gravatar_id":"","url":"https://api.github.com/users/evanw","html_url":"https://github.com/evanw","followers_url":"https://api.github.com/users/evanw/followers","following_url":"https://api.github.com/users/evanw/following{/other_user}","gists_url":"https://api.github.com/users/evanw/gists{/gist_id}","starred_url":"https://api.github.com/users/evanw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanw/subscriptions","organizations_url":"https://api.github.com/users/evanw/orgs","repos_url":"https://api.github.com/users/evanw/repos","events_url":"https://api.github.com/users/evanw/events{/privacy}","received_events_url":"https://api.github.com/users/evanw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-08T03:05:25Z","updated_at":"2015-03-23T17:48:28Z","closed_at":"2015-03-23T17:48:28Z","body":"Not escaping angle brackets makes working with code really annoying:\r\n\r\n```\r\npre.\r\n  #include <iostream>\r\n  int main() {\r\n    std::cout << \"hello world\\n\";\r\n    return 0;\r\n  }\r\n```\r\n\r\nThis code generates the following undesirable output:\r\n\r\n```\r\n<pre>#include <iostream>\r\nint main() {\r\n  std::cout << \"hello world\\n\";\r\n  return 0;\r\n}</pre>\r\n```\r\n\r\nWhat I want is something like this:\r\n\r\n```\r\n<pre>#include &lt;iostream&gt;\r\nint main() {\r\n  std::cout &lt;&lt; &quot;hello world\\n&quot;;\r\n  return 0;\r\n}</pre>\r\n```\r\n\r\nIt seems strange that angle brackets aren't escaped since I can already emit tags using the #[iostream] syntax if that's what I want. Is there a way to make jade compile text blocks as text?"},"comment":{"url":"https://api.github.com/repos/jadejs/jade/issues/comments/85121970","html_url":"https://github.com/jadejs/jade/issues/1884#issuecomment-85121970","issue_url":"https://api.github.com/repos/jadejs/jade/issues/1884","id":85121970,"user":{"login":"ForbesLindesay","id":1260646,"avatar_url":"https://avatars.githubusercontent.com/u/1260646?v=3","gravatar_id":"","url":"https://api.github.com/users/ForbesLindesay","html_url":"https://github.com/ForbesLindesay","followers_url":"https://api.github.com/users/ForbesLindesay/followers","following_url":"https://api.github.com/users/ForbesLindesay/following{/other_user}","gists_url":"https://api.github.com/users/ForbesLindesay/gists{/gist_id}","starred_url":"https://api.github.com/users/ForbesLindesay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForbesLindesay/subscriptions","organizations_url":"https://api.github.com/users/ForbesLindesay/orgs","repos_url":"https://api.github.com/users/ForbesLindesay/repos","events_url":"https://api.github.com/users/ForbesLindesay/events{/privacy}","received_events_url":"https://api.github.com/users/ForbesLindesay/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T17:48:28Z","updated_at":"2015-03-23T17:48:28Z","body":"This is what filters are for.  Jade has always supported inline html and I don't think it should remove support for inline HTML at this stage.  We will have built in support for an `escape-html` filter very soon."}}