{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony-demo/pulls/comments/36592115","id":36592115,"diff_hunk":"@@ -25,7 +25,10 @@ class Markdown\n \n     public function __construct()\n     {\n-        $this->parser = new \\Parsedown();\n+        $parsedown = new \\Parsedown();","path":"src/AppBundle/Utils/Markdown.php","position":5,"original_position":5,"commit_id":"5b1632d9eed9f7880759e4bb453c2a5eaf23a557","original_commit_id":"5b1632d9eed9f7880759e4bb453c2a5eaf23a557","user":{"login":"bocharsky-bw","id":3317635,"avatar_url":"https://avatars.githubusercontent.com/u/3317635?v=3","gravatar_id":"","url":"https://api.github.com/users/bocharsky-bw","html_url":"https://github.com/bocharsky-bw","followers_url":"https://api.github.com/users/bocharsky-bw/followers","following_url":"https://api.github.com/users/bocharsky-bw/following{/other_user}","gists_url":"https://api.github.com/users/bocharsky-bw/gists{/gist_id}","starred_url":"https://api.github.com/users/bocharsky-bw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bocharsky-bw/subscriptions","organizations_url":"https://api.github.com/users/bocharsky-bw/orgs","repos_url":"https://api.github.com/users/bocharsky-bw/repos","events_url":"https://api.github.com/users/bocharsky-bw/events{/privacy}","received_events_url":"https://api.github.com/users/bocharsky-bw/received_events","type":"User","site_admin":false},"body":"For simplicity, the `AppBundle\\Utils\\Markdown` is already service wrapper for `Parsedown` and to have `new` in its constructor is acceptable IMO.","created_at":"2015-08-09T18:46:57Z","updated_at":"2015-08-09T18:46:57Z","html_url":"https://github.com/symfony/symfony-demo/pull/135#discussion_r36592115","pull_request_url":"https://api.github.com/repos/symfony/symfony-demo/pulls/135","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-demo/pulls/comments/36592115"},"html":{"href":"https://github.com/symfony/symfony-demo/pull/135#discussion_r36592115"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony-demo/pulls/135"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony-demo/pulls/135","id":41972147,"html_url":"https://github.com/symfony/symfony-demo/pull/135","diff_url":"https://github.com/symfony/symfony-demo/pull/135.diff","patch_url":"https://github.com/symfony/symfony-demo/pull/135.patch","issue_url":"https://api.github.com/repos/symfony/symfony-demo/issues/135","number":135,"state":"open","locked":false,"title":"Enable content escaping in the Markdown extension","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"body":"This prevents XSS and other issues reported by @e-moe in #133.","created_at":"2015-08-09T15:35:25Z","updated_at":"2015-08-09T18:46:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00f89ec00f582c73c834302f3737a8d158b808d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony-demo/pulls/135/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony-demo/pulls/135/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony-demo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony-demo/issues/135/comments","statuses_url":"https://api.github.com/repos/symfony/symfony-demo/statuses/5b1632d9eed9f7880759e4bb453c2a5eaf23a557","head":{"label":"javiereguiluz:pr/134","ref":"pr/134","sha":"5b1632d9eed9f7880759e4bb453c2a5eaf23a557","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"repo":{"id":32811328,"name":"symfony-demo","full_name":"javiereguiluz/symfony-demo","owner":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/javiereguiluz/symfony-demo","description":"","fork":true,"url":"https://api.github.com/repos/javiereguiluz/symfony-demo","forks_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/forks","keys_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/teams","hooks_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/hooks","issue_events_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/issues/events{/number}","events_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/events","assignees_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/assignees{/user}","branches_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/branches{/branch}","tags_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/tags","blobs_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/statuses/{sha}","languages_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/languages","stargazers_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/stargazers","contributors_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/contributors","subscribers_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/subscribers","subscription_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/subscription","commits_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/contents/{+path}","compare_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/merges","archive_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/downloads","issues_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/issues{/number}","pulls_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/pulls{/number}","milestones_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/milestones{/number}","notifications_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/labels{/name}","releases_url":"https://api.github.com/repos/javiereguiluz/symfony-demo/releases{/id}","created_at":"2015-03-24T16:39:10Z","updated_at":"2015-03-24T16:39:11Z","pushed_at":"2015-08-09T15:33:32Z","git_url":"git://github.com/javiereguiluz/symfony-demo.git","ssh_url":"git@github.com:javiereguiluz/symfony-demo.git","clone_url":"https://github.com/javiereguiluz/symfony-demo.git","svn_url":"https://github.com/javiereguiluz/symfony-demo","homepage":null,"size":1478,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"master"}},"base":{"label":"symfony:master","ref":"master","sha":"306c466bd5aea7c6a1423211574802c39131b2ca","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":32792088,"name":"symfony-demo","full_name":"symfony/symfony-demo","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony-demo","description":"","fork":false,"url":"https://api.github.com/repos/symfony/symfony-demo","forks_url":"https://api.github.com/repos/symfony/symfony-demo/forks","keys_url":"https://api.github.com/repos/symfony/symfony-demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony-demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony-demo/teams","hooks_url":"https://api.github.com/repos/symfony/symfony-demo/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony-demo/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony-demo/events","assignees_url":"https://api.github.com/repos/symfony/symfony-demo/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony-demo/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony-demo/tags","blobs_url":"https://api.github.com/repos/symfony/symfony-demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony-demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony-demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony-demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony-demo/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony-demo/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony-demo/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony-demo/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony-demo/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony-demo/subscription","commits_url":"https://api.github.com/repos/symfony/symfony-demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony-demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony-demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony-demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony-demo/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony-demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony-demo/merges","archive_url":"https://api.github.com/repos/symfony/symfony-demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony-demo/downloads","issues_url":"https://api.github.com/repos/symfony/symfony-demo/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony-demo/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony-demo/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony-demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony-demo/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony-demo/releases{/id}","created_at":"2015-03-24T10:37:08Z","updated_at":"2015-08-09T15:36:03Z","pushed_at":"2015-08-09T15:48:58Z","git_url":"git://github.com/symfony/symfony-demo.git","ssh_url":"git@github.com:symfony/symfony-demo.git","clone_url":"https://github.com/symfony/symfony-demo.git","svn_url":"https://github.com/symfony/symfony-demo","homepage":null,"size":2617,"stargazers_count":216,"watchers_count":216,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":10,"forks":75,"open_issues":10,"watchers":216,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-demo/pulls/135"},"html":{"href":"https://github.com/symfony/symfony-demo/pull/135"},"issue":{"href":"https://api.github.com/repos/symfony/symfony-demo/issues/135"},"comments":{"href":"https://api.github.com/repos/symfony/symfony-demo/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony-demo/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony-demo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony-demo/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony-demo/statuses/5b1632d9eed9f7880759e4bb453c2a5eaf23a557"}}}}