{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/readability/pulls/comments/193382879","pull_request_review_id":126340939,"id":193382879,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzM4Mjg3OQ==","diff_hunk":"@@ -75,17 +75,21 @@ function fetchSource(url, callbackFn) {\n       if (debug) {\n         console.log(\"End received\");\n       }\n-      // Sanitize:\n-      htmltidy(serializeDocument(jsdom(rv)), {\n-        \"indent\": true,\n-        \"indent-spaces\": 4,\n-        \"output-xhtml\": true,\n-        \"wrap\": 0\n-      }, callbackFn);\n+      sanitizeSource(rv, callbackFn);\n     });\n   });\n }\n \n+function sanitizeSource(html, callbackFn) {\n+  htmltidy(serializeDocument(jsdom(html)), {\n+    \"indent\": true,\n+    \"indent-spaces\": 4,\n+    \"numeric-entities\": true,\n+    \"output-xhtml\": true,\n+    \"wrap\": 0","path":"test/generate-testcase.js","position":22,"original_position":22,"commit_id":"0f5eaf8c53b28ec5fef2cbe4617bf7c8345e97a1","original_commit_id":"ea019fc5f889ab3dcc38250875d0fbaa0d757e4a","user":{"login":"gijsk","id":375983,"node_id":"MDQ6VXNlcjM3NTk4Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/375983?v=4","gravatar_id":"","url":"https://api.github.com/users/gijsk","html_url":"https://github.com/gijsk","followers_url":"https://api.github.com/users/gijsk/followers","following_url":"https://api.github.com/users/gijsk/following{/other_user}","gists_url":"https://api.github.com/users/gijsk/gists{/gist_id}","starred_url":"https://api.github.com/users/gijsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gijsk/subscriptions","organizations_url":"https://api.github.com/users/gijsk/orgs","repos_url":"https://api.github.com/users/gijsk/repos","events_url":"https://api.github.com/users/gijsk/events{/privacy}","received_events_url":"https://api.github.com/users/gijsk/received_events","type":"User","site_admin":false},"body":"Nitpick: can you add a trailing comma after the last property as well? This makes it easier to add/remove entries in objects/arrays.","created_at":"2018-06-06T11:54:45Z","updated_at":"2018-06-06T11:58:08Z","html_url":"https://github.com/mozilla/readability/pull/455#discussion_r193382879","pull_request_url":"https://api.github.com/repos/mozilla/readability/pulls/455","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/mozilla/readability/pulls/comments/193382879"},"html":{"href":"https://github.com/mozilla/readability/pull/455#discussion_r193382879"},"pull_request":{"href":"https://api.github.com/repos/mozilla/readability/pulls/455"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/readability/pulls/455","id":190721237,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNzIxMjM3","html_url":"https://github.com/mozilla/readability/pull/455","diff_url":"https://github.com/mozilla/readability/pull/455.diff","patch_url":"https://github.com/mozilla/readability/pull/455.patch","issue_url":"https://api.github.com/repos/mozilla/readability/issues/455","number":455,"state":"open","locked":false,"title":"Don't nest paragraphs","user":{"login":"davidar","id":24291,"node_id":"MDQ6VXNlcjI0Mjkx","avatar_url":"https://avatars3.githubusercontent.com/u/24291?v=4","gravatar_id":"","url":"https://api.github.com/users/davidar","html_url":"https://github.com/davidar","followers_url":"https://api.github.com/users/davidar/followers","following_url":"https://api.github.com/users/davidar/following{/other_user}","gists_url":"https://api.github.com/users/davidar/gists{/gist_id}","starred_url":"https://api.github.com/users/davidar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidar/subscriptions","organizations_url":"https://api.github.com/users/davidar/orgs","repos_url":"https://api.github.com/users/davidar/repos","events_url":"https://api.github.com/users/davidar/events{/privacy}","received_events_url":"https://api.github.com/users/davidar/received_events","type":"User","site_admin":false},"body":"This fixes the second item of #451, along with some other issues I ran into in the process.","created_at":"2018-05-26T02:18:02Z","updated_at":"2018-06-06T11:58:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a88382f52c47d59a8e6b8de7f5b827c59266cf7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/readability/pulls/455/commits","review_comments_url":"https://api.github.com/repos/mozilla/readability/pulls/455/comments","review_comment_url":"https://api.github.com/repos/mozilla/readability/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/readability/issues/455/comments","statuses_url":"https://api.github.com/repos/mozilla/readability/statuses/0f5eaf8c53b28ec5fef2cbe4617bf7c8345e97a1","head":{"label":"davidar:nested-p","ref":"nested-p","sha":"0f5eaf8c53b28ec5fef2cbe4617bf7c8345e97a1","user":{"login":"davidar","id":24291,"node_id":"MDQ6VXNlcjI0Mjkx","avatar_url":"https://avatars3.githubusercontent.com/u/24291?v=4","gravatar_id":"","url":"https://api.github.com/users/davidar","html_url":"https://github.com/davidar","followers_url":"https://api.github.com/users/davidar/followers","following_url":"https://api.github.com/users/davidar/following{/other_user}","gists_url":"https://api.github.com/users/davidar/gists{/gist_id}","starred_url":"https://api.github.com/users/davidar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidar/subscriptions","organizations_url":"https://api.github.com/users/davidar/orgs","repos_url":"https://api.github.com/users/davidar/repos","events_url":"https://api.github.com/users/davidar/events{/privacy}","received_events_url":"https://api.github.com/users/davidar/received_events","type":"User","site_admin":false},"repo":{"id":73361812,"node_id":"MDEwOlJlcG9zaXRvcnk3MzM2MTgxMg==","name":"readability","full_name":"davidar/readability","owner":{"login":"davidar","id":24291,"node_id":"MDQ6VXNlcjI0Mjkx","avatar_url":"https://avatars3.githubusercontent.com/u/24291?v=4","gravatar_id":"","url":"https://api.github.com/users/davidar","html_url":"https://github.com/davidar","followers_url":"https://api.github.com/users/davidar/followers","following_url":"https://api.github.com/users/davidar/following{/other_user}","gists_url":"https://api.github.com/users/davidar/gists{/gist_id}","starred_url":"https://api.github.com/users/davidar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidar/subscriptions","organizations_url":"https://api.github.com/users/davidar/orgs","repos_url":"https://api.github.com/users/davidar/repos","events_url":"https://api.github.com/users/davidar/events{/privacy}","received_events_url":"https://api.github.com/users/davidar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidar/readability","description":"A standalone version of the readability lib","fork":true,"url":"https://api.github.com/repos/davidar/readability","forks_url":"https://api.github.com/repos/davidar/readability/forks","keys_url":"https://api.github.com/repos/davidar/readability/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidar/readability/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidar/readability/teams","hooks_url":"https://api.github.com/repos/davidar/readability/hooks","issue_events_url":"https://api.github.com/repos/davidar/readability/issues/events{/number}","events_url":"https://api.github.com/repos/davidar/readability/events","assignees_url":"https://api.github.com/repos/davidar/readability/assignees{/user}","branches_url":"https://api.github.com/repos/davidar/readability/branches{/branch}","tags_url":"https://api.github.com/repos/davidar/readability/tags","blobs_url":"https://api.github.com/repos/davidar/readability/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidar/readability/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidar/readability/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidar/readability/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidar/readability/statuses/{sha}","languages_url":"https://api.github.com/repos/davidar/readability/languages","stargazers_url":"https://api.github.com/repos/davidar/readability/stargazers","contributors_url":"https://api.github.com/repos/davidar/readability/contributors","subscribers_url":"https://api.github.com/repos/davidar/readability/subscribers","subscription_url":"https://api.github.com/repos/davidar/readability/subscription","commits_url":"https://api.github.com/repos/davidar/readability/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidar/readability/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidar/readability/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidar/readability/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidar/readability/contents/{+path}","compare_url":"https://api.github.com/repos/davidar/readability/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidar/readability/merges","archive_url":"https://api.github.com/repos/davidar/readability/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidar/readability/downloads","issues_url":"https://api.github.com/repos/davidar/readability/issues{/number}","pulls_url":"https://api.github.com/repos/davidar/readability/pulls{/number}","milestones_url":"https://api.github.com/repos/davidar/readability/milestones{/number}","notifications_url":"https://api.github.com/repos/davidar/readability/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidar/readability/labels{/name}","releases_url":"https://api.github.com/repos/davidar/readability/releases{/id}","deployments_url":"https://api.github.com/repos/davidar/readability/deployments","created_at":"2016-11-10T08:29:47Z","updated_at":"2018-04-22T08:20:47Z","pushed_at":"2018-05-26T02:14:54Z","git_url":"git://github.com/davidar/readability.git","ssh_url":"git@github.com:davidar/readability.git","clone_url":"https://github.com/davidar/readability.git","svn_url":"https://github.com/davidar/readability","homepage":null,"size":4228,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"d4b842c82a86c09d1f5c9f8ea8781692ba3cd147","user":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":30231828,"node_id":"MDEwOlJlcG9zaXRvcnkzMDIzMTgyOA==","name":"readability","full_name":"mozilla/readability","owner":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/readability","description":"A standalone version of the readability lib","fork":false,"url":"https://api.github.com/repos/mozilla/readability","forks_url":"https://api.github.com/repos/mozilla/readability/forks","keys_url":"https://api.github.com/repos/mozilla/readability/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/readability/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/readability/teams","hooks_url":"https://api.github.com/repos/mozilla/readability/hooks","issue_events_url":"https://api.github.com/repos/mozilla/readability/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/readability/events","assignees_url":"https://api.github.com/repos/mozilla/readability/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/readability/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/readability/tags","blobs_url":"https://api.github.com/repos/mozilla/readability/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/readability/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/readability/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/readability/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/readability/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/readability/languages","stargazers_url":"https://api.github.com/repos/mozilla/readability/stargazers","contributors_url":"https://api.github.com/repos/mozilla/readability/contributors","subscribers_url":"https://api.github.com/repos/mozilla/readability/subscribers","subscription_url":"https://api.github.com/repos/mozilla/readability/subscription","commits_url":"https://api.github.com/repos/mozilla/readability/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/readability/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/readability/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/readability/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/readability/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/readability/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/readability/merges","archive_url":"https://api.github.com/repos/mozilla/readability/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/readability/downloads","issues_url":"https://api.github.com/repos/mozilla/readability/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/readability/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/readability/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/readability/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/readability/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/readability/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/readability/deployments","created_at":"2015-02-03T08:01:54Z","updated_at":"2018-06-05T06:00:17Z","pushed_at":"2018-05-26T02:18:03Z","git_url":"git://github.com/mozilla/readability.git","ssh_url":"git@github.com:mozilla/readability.git","clone_url":"https://github.com/mozilla/readability.git","svn_url":"https://github.com/mozilla/readability","homepage":null,"size":4219,"stargazers_count":1271,"watchers_count":1271,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":197,"mirror_url":null,"archived":false,"open_issues_count":142,"license":null,"forks":197,"open_issues":142,"watchers":1271,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/readability/pulls/455"},"html":{"href":"https://github.com/mozilla/readability/pull/455"},"issue":{"href":"https://api.github.com/repos/mozilla/readability/issues/455"},"comments":{"href":"https://api.github.com/repos/mozilla/readability/issues/455/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/readability/pulls/455/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/readability/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/readability/pulls/455/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/readability/statuses/0f5eaf8c53b28ec5fef2cbe4617bf7c8345e97a1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gijsk"}}