{"action":"closed","number":197,"pull_request":{"url":"https://api.github.com/repos/hoodiehq/documentation/pulls/197","id":52487396,"html_url":"https://github.com/hoodiehq/documentation/pull/197","diff_url":"https://github.com/hoodiehq/documentation/pull/197.diff","patch_url":"https://github.com/hoodiehq/documentation/pull/197.patch","issue_url":"https://api.github.com/repos/hoodiehq/documentation/issues/197","number":197,"state":"closed","locked":false,"title":"Update sample code so it is HTML-injection-safe","user":{"login":"mheiber","id":4691093,"avatar_url":"https://avatars.githubusercontent.com/u/4691093?v=3","gravatar_id":"","url":"https://api.github.com/users/mheiber","html_url":"https://github.com/mheiber","followers_url":"https://api.github.com/users/mheiber/followers","following_url":"https://api.github.com/users/mheiber/following{/other_user}","gists_url":"https://api.github.com/users/mheiber/gists{/gist_id}","starred_url":"https://api.github.com/users/mheiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheiber/subscriptions","organizations_url":"https://api.github.com/users/mheiber/orgs","repos_url":"https://api.github.com/users/mheiber/repos","events_url":"https://api.github.com/users/mheiber/events{/privacy}","received_events_url":"https://api.github.com/users/mheiber/received_events","type":"User","site_admin":false},"body":"Fixes #196\r\n\r\nUses `$.text()` instead of `$('<li>' + unsafeContent + '</li>);` : so the tutorial doesn't encourage practices that are vulnerable to cross-site scripting.\r\n\r\nSee [Cross-Site Scripting Prevention Cheat Sheet](https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#RULE_.230_-_Never_Insert_Untrusted_Data_Except_in_Allowed_Locations)\r\n\r\n","created_at":"2015-12-03T03:23:15Z","updated_at":"2015-12-14T16:48:55Z","closed_at":"2015-12-14T16:48:55Z","merged_at":"2015-12-14T16:48:55Z","merge_commit_sha":"79f2a1deea07a9871c799d70a371b5837315aad8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hoodiehq/documentation/pulls/197/commits","review_comments_url":"https://api.github.com/repos/hoodiehq/documentation/pulls/197/comments","review_comment_url":"https://api.github.com/repos/hoodiehq/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hoodiehq/documentation/issues/197/comments","statuses_url":"https://api.github.com/repos/hoodiehq/documentation/statuses/a93ab28834d48d48e2011892c4c1796d80df5b81","head":{"label":"mheiber:mheiber-patch-1","ref":"mheiber-patch-1","sha":"a93ab28834d48d48e2011892c4c1796d80df5b81","user":{"login":"mheiber","id":4691093,"avatar_url":"https://avatars.githubusercontent.com/u/4691093?v=3","gravatar_id":"","url":"https://api.github.com/users/mheiber","html_url":"https://github.com/mheiber","followers_url":"https://api.github.com/users/mheiber/followers","following_url":"https://api.github.com/users/mheiber/following{/other_user}","gists_url":"https://api.github.com/users/mheiber/gists{/gist_id}","starred_url":"https://api.github.com/users/mheiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheiber/subscriptions","organizations_url":"https://api.github.com/users/mheiber/orgs","repos_url":"https://api.github.com/users/mheiber/repos","events_url":"https://api.github.com/users/mheiber/events{/privacy}","received_events_url":"https://api.github.com/users/mheiber/received_events","type":"User","site_admin":false},"repo":{"id":46939961,"name":"documentation","full_name":"mheiber/documentation","owner":{"login":"mheiber","id":4691093,"avatar_url":"https://avatars.githubusercontent.com/u/4691093?v=3","gravatar_id":"","url":"https://api.github.com/users/mheiber","html_url":"https://github.com/mheiber","followers_url":"https://api.github.com/users/mheiber/followers","following_url":"https://api.github.com/users/mheiber/following{/other_user}","gists_url":"https://api.github.com/users/mheiber/gists{/gist_id}","starred_url":"https://api.github.com/users/mheiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheiber/subscriptions","organizations_url":"https://api.github.com/users/mheiber/orgs","repos_url":"https://api.github.com/users/mheiber/repos","events_url":"https://api.github.com/users/mheiber/events{/privacy}","received_events_url":"https://api.github.com/users/mheiber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mheiber/documentation","description":"The Hoodie Documentation. This repo is Work in Progress.","fork":true,"url":"https://api.github.com/repos/mheiber/documentation","forks_url":"https://api.github.com/repos/mheiber/documentation/forks","keys_url":"https://api.github.com/repos/mheiber/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mheiber/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mheiber/documentation/teams","hooks_url":"https://api.github.com/repos/mheiber/documentation/hooks","issue_events_url":"https://api.github.com/repos/mheiber/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/mheiber/documentation/events","assignees_url":"https://api.github.com/repos/mheiber/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/mheiber/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/mheiber/documentation/tags","blobs_url":"https://api.github.com/repos/mheiber/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mheiber/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mheiber/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/mheiber/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mheiber/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/mheiber/documentation/languages","stargazers_url":"https://api.github.com/repos/mheiber/documentation/stargazers","contributors_url":"https://api.github.com/repos/mheiber/documentation/contributors","subscribers_url":"https://api.github.com/repos/mheiber/documentation/subscribers","subscription_url":"https://api.github.com/repos/mheiber/documentation/subscription","commits_url":"https://api.github.com/repos/mheiber/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/mheiber/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/mheiber/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/mheiber/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/mheiber/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/mheiber/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mheiber/documentation/merges","archive_url":"https://api.github.com/repos/mheiber/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mheiber/documentation/downloads","issues_url":"https://api.github.com/repos/mheiber/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/mheiber/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/mheiber/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/mheiber/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mheiber/documentation/labels{/name}","releases_url":"https://api.github.com/repos/mheiber/documentation/releases{/id}","created_at":"2015-11-26T17:38:44Z","updated_at":"2015-11-26T17:38:45Z","pushed_at":"2015-12-04T02:06:59Z","git_url":"git://github.com/mheiber/documentation.git","ssh_url":"git@github.com:mheiber/documentation.git","clone_url":"https://github.com/mheiber/documentation.git","svn_url":"https://github.com/mheiber/documentation","homepage":"http://docs.hood.ie","size":9799,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"hoodiehq:gh-pages","ref":"gh-pages","sha":"e17cf3a9f966a63dd01beb94e245e2c4100062b9","user":{"login":"hoodiehq","id":1888826,"avatar_url":"https://avatars.githubusercontent.com/u/1888826?v=3","gravatar_id":"","url":"https://api.github.com/users/hoodiehq","html_url":"https://github.com/hoodiehq","followers_url":"https://api.github.com/users/hoodiehq/followers","following_url":"https://api.github.com/users/hoodiehq/following{/other_user}","gists_url":"https://api.github.com/users/hoodiehq/gists{/gist_id}","starred_url":"https://api.github.com/users/hoodiehq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoodiehq/subscriptions","organizations_url":"https://api.github.com/users/hoodiehq/orgs","repos_url":"https://api.github.com/users/hoodiehq/repos","events_url":"https://api.github.com/users/hoodiehq/events{/privacy}","received_events_url":"https://api.github.com/users/hoodiehq/received_events","type":"Organization","site_admin":false},"repo":{"id":4987821,"name":"documentation","full_name":"hoodiehq/documentation","owner":{"login":"hoodiehq","id":1888826,"avatar_url":"https://avatars.githubusercontent.com/u/1888826?v=3","gravatar_id":"","url":"https://api.github.com/users/hoodiehq","html_url":"https://github.com/hoodiehq","followers_url":"https://api.github.com/users/hoodiehq/followers","following_url":"https://api.github.com/users/hoodiehq/following{/other_user}","gists_url":"https://api.github.com/users/hoodiehq/gists{/gist_id}","starred_url":"https://api.github.com/users/hoodiehq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoodiehq/subscriptions","organizations_url":"https://api.github.com/users/hoodiehq/orgs","repos_url":"https://api.github.com/users/hoodiehq/repos","events_url":"https://api.github.com/users/hoodiehq/events{/privacy}","received_events_url":"https://api.github.com/users/hoodiehq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hoodiehq/documentation","description":"The Hoodie Documentation. This repo is Work in Progress.","fork":false,"url":"https://api.github.com/repos/hoodiehq/documentation","forks_url":"https://api.github.com/repos/hoodiehq/documentation/forks","keys_url":"https://api.github.com/repos/hoodiehq/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoodiehq/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoodiehq/documentation/teams","hooks_url":"https://api.github.com/repos/hoodiehq/documentation/hooks","issue_events_url":"https://api.github.com/repos/hoodiehq/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/hoodiehq/documentation/events","assignees_url":"https://api.github.com/repos/hoodiehq/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/hoodiehq/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/hoodiehq/documentation/tags","blobs_url":"https://api.github.com/repos/hoodiehq/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoodiehq/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoodiehq/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoodiehq/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoodiehq/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/hoodiehq/documentation/languages","stargazers_url":"https://api.github.com/repos/hoodiehq/documentation/stargazers","contributors_url":"https://api.github.com/repos/hoodiehq/documentation/contributors","subscribers_url":"https://api.github.com/repos/hoodiehq/documentation/subscribers","subscription_url":"https://api.github.com/repos/hoodiehq/documentation/subscription","commits_url":"https://api.github.com/repos/hoodiehq/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoodiehq/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoodiehq/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoodiehq/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoodiehq/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/hoodiehq/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoodiehq/documentation/merges","archive_url":"https://api.github.com/repos/hoodiehq/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoodiehq/documentation/downloads","issues_url":"https://api.github.com/repos/hoodiehq/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/hoodiehq/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/hoodiehq/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/hoodiehq/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoodiehq/documentation/labels{/name}","releases_url":"https://api.github.com/repos/hoodiehq/documentation/releases{/id}","created_at":"2012-07-11T10:53:54Z","updated_at":"2015-12-05T12:46:12Z","pushed_at":"2015-12-14T16:48:55Z","git_url":"git://github.com/hoodiehq/documentation.git","ssh_url":"git@github.com:hoodiehq/documentation.git","clone_url":"https://github.com/hoodiehq/documentation.git","svn_url":"https://github.com/hoodiehq/documentation","homepage":"http://docs.hood.ie","size":9812,"stargazers_count":69,"watchers_count":69,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":30,"forks":44,"open_issues":30,"watchers":69,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/hoodiehq/documentation/pulls/197"},"html":{"href":"https://github.com/hoodiehq/documentation/pull/197"},"issue":{"href":"https://api.github.com/repos/hoodiehq/documentation/issues/197"},"comments":{"href":"https://api.github.com/repos/hoodiehq/documentation/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/hoodiehq/documentation/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/hoodiehq/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hoodiehq/documentation/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/hoodiehq/documentation/statuses/a93ab28834d48d48e2011892c4c1796d80df5b81"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"gr2m","id":39992,"avatar_url":"https://avatars.githubusercontent.com/u/39992?v=3","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"comments":2,"review_comments":1,"commits":2,"additions":19,"deletions":10,"changed_files":1}}