{"action":"closed","number":2857,"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2857","id":36349061,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2857","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/2857.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/2857.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2857","number":2857,"state":"closed","locked":false,"title":"Feature/issue2163","user":{"login":"brandonPurvis","id":6082535,"avatar_url":"https://avatars.githubusercontent.com/u/6082535?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonPurvis","html_url":"https://github.com/brandonPurvis","followers_url":"https://api.github.com/users/brandonPurvis/followers","following_url":"https://api.github.com/users/brandonPurvis/following{/other_user}","gists_url":"https://api.github.com/users/brandonPurvis/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonPurvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonPurvis/subscriptions","organizations_url":"https://api.github.com/users/brandonPurvis/orgs","repos_url":"https://api.github.com/users/brandonPurvis/repos","events_url":"https://api.github.com/users/brandonPurvis/events{/privacy}","received_events_url":"https://api.github.com/users/brandonPurvis/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nEscaped html characters, `&lt;` and `&gt;` would appear in a project's title in the path on the file page, the project organizer, and in search results, when the '<' and '>' characters should have been displayed. This PR fixes this issue replacing  `&lt;` and `&gt;` with '<' and '>' respectively.\r\n\r\nCloses Issue: https://github.com/CenterForOpenScience/osf.io/issues/2163\r\n\r\n## Changes\r\n* Created a function, unescape_html, in sanitize.py that replaces escaped ampersands, less thans, and greater thans, with their unescaped characters.\r\n* call unesacpe_html on a node's title when serializing nodes in rubeus.py, and when formatting elasticsearch results.","created_at":"2015-05-27T21:10:25Z","updated_at":"2015-05-30T01:05:47Z","closed_at":"2015-05-30T01:05:47Z","merged_at":"2015-05-30T01:05:47Z","merge_commit_sha":"ca9086497d15f2593906adae52d1208cfa2cd59c","assignee":null,"milestone":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/35","html_url":"https://github.com/CenterForOpenScience/osf.io/milestones/0.38.0","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/35/labels","id":1134921,"number":35,"title":"0.38.0","description":"","creator":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":5,"state":"open","created_at":"2015-05-26T23:26:37Z","updated_at":"2015-05-30T01:05:47Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2857/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2857/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2857/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/6767b700840f0de5a72dc6d5d66ca9385013ce96","head":{"label":"brandonPurvis:feature/issue2163","ref":"feature/issue2163","sha":"6767b700840f0de5a72dc6d5d66ca9385013ce96","user":{"login":"brandonPurvis","id":6082535,"avatar_url":"https://avatars.githubusercontent.com/u/6082535?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonPurvis","html_url":"https://github.com/brandonPurvis","followers_url":"https://api.github.com/users/brandonPurvis/followers","following_url":"https://api.github.com/users/brandonPurvis/following{/other_user}","gists_url":"https://api.github.com/users/brandonPurvis/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonPurvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonPurvis/subscriptions","organizations_url":"https://api.github.com/users/brandonPurvis/orgs","repos_url":"https://api.github.com/users/brandonPurvis/repos","events_url":"https://api.github.com/users/brandonPurvis/events{/privacy}","received_events_url":"https://api.github.com/users/brandonPurvis/received_events","type":"User","site_admin":false},"repo":{"id":35900857,"name":"osf.io","full_name":"brandonPurvis/osf.io","owner":{"login":"brandonPurvis","id":6082535,"avatar_url":"https://avatars.githubusercontent.com/u/6082535?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonPurvis","html_url":"https://github.com/brandonPurvis","followers_url":"https://api.github.com/users/brandonPurvis/followers","following_url":"https://api.github.com/users/brandonPurvis/following{/other_user}","gists_url":"https://api.github.com/users/brandonPurvis/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonPurvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonPurvis/subscriptions","organizations_url":"https://api.github.com/users/brandonPurvis/orgs","repos_url":"https://api.github.com/users/brandonPurvis/repos","events_url":"https://api.github.com/users/brandonPurvis/events{/privacy}","received_events_url":"https://api.github.com/users/brandonPurvis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brandonPurvis/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/brandonPurvis/osf.io","forks_url":"https://api.github.com/repos/brandonPurvis/osf.io/forks","keys_url":"https://api.github.com/repos/brandonPurvis/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brandonPurvis/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brandonPurvis/osf.io/teams","hooks_url":"https://api.github.com/repos/brandonPurvis/osf.io/hooks","issue_events_url":"https://api.github.com/repos/brandonPurvis/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/brandonPurvis/osf.io/events","assignees_url":"https://api.github.com/repos/brandonPurvis/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/brandonPurvis/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/brandonPurvis/osf.io/tags","blobs_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brandonPurvis/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/brandonPurvis/osf.io/languages","stargazers_url":"https://api.github.com/repos/brandonPurvis/osf.io/stargazers","contributors_url":"https://api.github.com/repos/brandonPurvis/osf.io/contributors","subscribers_url":"https://api.github.com/repos/brandonPurvis/osf.io/subscribers","subscription_url":"https://api.github.com/repos/brandonPurvis/osf.io/subscription","commits_url":"https://api.github.com/repos/brandonPurvis/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/brandonPurvis/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/brandonPurvis/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/brandonPurvis/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/brandonPurvis/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brandonPurvis/osf.io/merges","archive_url":"https://api.github.com/repos/brandonPurvis/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brandonPurvis/osf.io/downloads","issues_url":"https://api.github.com/repos/brandonPurvis/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/brandonPurvis/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/brandonPurvis/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/brandonPurvis/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brandonPurvis/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/brandonPurvis/osf.io/releases{/id}","created_at":"2015-05-19T18:32:48Z","updated_at":"2015-05-19T18:32:52Z","pushed_at":"2015-05-29T18:31:59Z","git_url":"git://github.com/brandonPurvis/osf.io.git","ssh_url":"git@github.com:brandonPurvis/osf.io.git","clone_url":"https://github.com/brandonPurvis/osf.io.git","svn_url":"https://github.com/brandonPurvis/osf.io","homepage":"http://osf.io","size":87915,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"2393d8fa401b7815334928f7b1a7d58bf3163e48","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2015-05-26T14:58:41Z","pushed_at":"2015-05-30T01:05:47Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":212625,"stargazers_count":106,"watchers_count":106,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":446,"forks":90,"open_issues":446,"watchers":106,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2857"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/2857"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2857"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2857/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2857/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2857/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/6767b700840f0de5a72dc6d5d66ca9385013ce96"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"comments":7,"review_comments":2,"commits":8,"additions":34,"deletions":8,"changed_files":4}}