{"action":"created","issue":{"url":"https://api.github.com/repos/presidentbeef/brakeman/issues/706","labels_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/706/labels{/name}","comments_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/706/comments","events_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/706/events","html_url":"https://github.com/presidentbeef/brakeman/pull/706","id":103077515,"number":706,"title":"Allow support for j and escape_javascript","user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-25T17:32:33Z","updated_at":"2015-08-29T02:46:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/presidentbeef/brakeman/pulls/706","html_url":"https://github.com/presidentbeef/brakeman/pull/706","diff_url":"https://github.com/presidentbeef/brakeman/pull/706.diff","patch_url":"https://github.com/presidentbeef/brakeman/pull/706.patch"},"body":"Hello,\r\n\r\nThe `j` and `escape_javascript` method are used in javascript blocks to ensure that\r\ntext is properly escaped to be in a javascript string.\r\n\r\nThis works much the same way as `escapeHTML` and `h` do for ensuring that text is safe for inclusion in an html tag.\r\n\r\nThis can be found throughout stack overflow and the docs can be found [here](http://apidock.com/rails/ActionView/Helpers/JavaScriptHelper/escape_javascript).\r\n\r\nDoes this sounds like a good inclusion?\r\nWhat else can I provide to help drive that decision?\r\n\r\nThanks for this great tool"},"comment":{"url":"https://api.github.com/repos/presidentbeef/brakeman/issues/comments/135932525","html_url":"https://github.com/presidentbeef/brakeman/pull/706#issuecomment-135932525","issue_url":"https://api.github.com/repos/presidentbeef/brakeman/issues/706","id":135932525,"user":{"login":"presidentbeef","id":75613,"avatar_url":"https://avatars.githubusercontent.com/u/75613?v=3","gravatar_id":"","url":"https://api.github.com/users/presidentbeef","html_url":"https://github.com/presidentbeef","followers_url":"https://api.github.com/users/presidentbeef/followers","following_url":"https://api.github.com/users/presidentbeef/following{/other_user}","gists_url":"https://api.github.com/users/presidentbeef/gists{/gist_id}","starred_url":"https://api.github.com/users/presidentbeef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/presidentbeef/subscriptions","organizations_url":"https://api.github.com/users/presidentbeef/orgs","repos_url":"https://api.github.com/users/presidentbeef/repos","events_url":"https://api.github.com/users/presidentbeef/events{/privacy}","received_events_url":"https://api.github.com/users/presidentbeef/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T02:46:57Z","updated_at":"2015-08-29T02:46:57Z","body":"Ah, okay. This is actually something different. Essentially I need to work a little more on the HAML handling so that `find_and_preserve` is not treated like a normal call. It's on my list of things to do..."}}