{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/60967742","id":60967742,"diff_hunk":"@@ -125,7 +133,17 @@ def __init__(self, short_name, full_name, owners, categories,\n         )\n         if template_dirs:\n             self.template_lookup = TemplateLookup(\n-                directories=template_dirs\n+                directories=template_dirs,\n+                default_filters=[\n+                    'unicode',  # default filter; must set explicitly when overriding\n+                    'temp_ampersand_fixer',\n+                    # FIXME: Temporary workaround for data stored in wrong format in DB. Unescape it before it gets re-escaped by Markupsafe.\n+                    'h',\n+                ],\n+                imports=[\n+                    'from website.util.sanitize import temp_ampersand_fixer',\n+                    # FIXME: Temporary workaround for data stored in wrong format in DB. Unescape it before it gets re-escaped by Markupsafe.","path":"website/addons/base/__init__.py","position":29,"original_position":29,"commit_id":"87a3c4069b8f33faa9dfb7fc59e724cf60a3e048","original_commit_id":"87a3c4069b8f33faa9dfb7fc59e724cf60a3e048","user":{"login":"brianjgeiger","id":6599111,"avatar_url":"https://avatars.githubusercontent.com/u/6599111?v=3","gravatar_id":"","url":"https://api.github.com/users/brianjgeiger","html_url":"https://github.com/brianjgeiger","followers_url":"https://api.github.com/users/brianjgeiger/followers","following_url":"https://api.github.com/users/brianjgeiger/following{/other_user}","gists_url":"https://api.github.com/users/brianjgeiger/gists{/gist_id}","starred_url":"https://api.github.com/users/brianjgeiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianjgeiger/subscriptions","organizations_url":"https://api.github.com/users/brianjgeiger/orgs","repos_url":"https://api.github.com/users/brianjgeiger/repos","events_url":"https://api.github.com/users/brianjgeiger/events{/privacy}","received_events_url":"https://api.github.com/users/brianjgeiger/received_events","type":"User","site_admin":false},"body":"Tag","created_at":"2016-04-25T18:54:20Z","updated_at":"2016-04-25T18:54:20Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/5531#discussion_r60967742","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5531","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/60967742"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/5531#discussion_r60967742"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5531"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5531","id":67767423,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/5531","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/5531.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/5531.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5531","number":5531,"state":"open","locked":false,"title":"[WIP] Javascript string handling","user":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nImprove handling of user text in constructed HTML, for a more consistent front-end experience.\r\n\r\n## Changes\r\nThese changes may affect display of many pages and behaviors throughout the OSF.\r\n\r\n- Add HTML escaping for strings of constructed HTML in JS messages\r\n- Audit various addons, JS tools, and server messages for constructed HTML\r\n\r\n## Side effects\r\nThere may be some display artifacts if the same string is escaped twice. Additionally, formatted messages (especially in modals) might show code where previously they showed formatting. \r\n\r\nSee testing notes in JIRA ticket for further pointers.\r\n\r\n## Ticket\r\nhttps://openscience.atlassian.net/browse/OSF-4431\r\n","created_at":"2016-04-25T18:38:25Z","updated_at":"2016-04-25T18:54:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8c8b302bef27648781be82d1892ace71c94889c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5531/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5531/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/5531/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/87a3c4069b8f33faa9dfb7fc59e724cf60a3e048","head":{"label":"abought:feature/osf4431-js-review","ref":"feature/osf4431-js-review","sha":"87a3c4069b8f33faa9dfb7fc59e724cf60a3e048","user":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"repo":{"id":31237649,"name":"osf.io","full_name":"abought/osf.io","owner":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abought/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/abought/osf.io","forks_url":"https://api.github.com/repos/abought/osf.io/forks","keys_url":"https://api.github.com/repos/abought/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abought/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abought/osf.io/teams","hooks_url":"https://api.github.com/repos/abought/osf.io/hooks","issue_events_url":"https://api.github.com/repos/abought/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/abought/osf.io/events","assignees_url":"https://api.github.com/repos/abought/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/abought/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/abought/osf.io/tags","blobs_url":"https://api.github.com/repos/abought/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abought/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abought/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/abought/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abought/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/abought/osf.io/languages","stargazers_url":"https://api.github.com/repos/abought/osf.io/stargazers","contributors_url":"https://api.github.com/repos/abought/osf.io/contributors","subscribers_url":"https://api.github.com/repos/abought/osf.io/subscribers","subscription_url":"https://api.github.com/repos/abought/osf.io/subscription","commits_url":"https://api.github.com/repos/abought/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/abought/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/abought/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/abought/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/abought/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/abought/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abought/osf.io/merges","archive_url":"https://api.github.com/repos/abought/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abought/osf.io/downloads","issues_url":"https://api.github.com/repos/abought/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/abought/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/abought/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/abought/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abought/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/abought/osf.io/releases{/id}","deployments_url":"https://api.github.com/repos/abought/osf.io/deployments","created_at":"2015-02-24T00:27:13Z","updated_at":"2016-03-03T17:58:05Z","pushed_at":"2016-04-25T17:37:35Z","git_url":"git://github.com/abought/osf.io.git","ssh_url":"git@github.com:abought/osf.io.git","clone_url":"https://github.com/abought/osf.io.git","svn_url":"https://github.com/abought/osf.io","homepage":"http://osf.io","size":127564,"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":"62547287c58c003abfe2369d00de0b96e9fa2d9f","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}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/deployments","created_at":"2013-05-21T15:53:37Z","updated_at":"2016-04-20T16:42:44Z","pushed_at":"2016-04-25T18:42:25Z","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":273558,"stargazers_count":212,"watchers_count":212,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":164,"mirror_url":null,"open_issues_count":225,"forks":164,"open_issues":225,"watchers":212,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5531"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/5531"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5531"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5531/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5531/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/5531/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/87a3c4069b8f33faa9dfb7fc59e724cf60a3e048"}}}}