{"action":"created","comment":{"url":"https://api.github.com/repos/bolt/bolt/pulls/comments/26447782","id":26447782,"diff_hunk":"@@ -678,12 +678,18 @@ public function getDecodedValue($name)\n                     // Parse the field as Markdown, return HTML\n                     $value = \\ParsedownExtra::instance()->text($value);\n \n+                    $config = $this->app['config']->get('general/htmlcleaner');\n+                    $allowed_tags = !empty($config['allowed_tags']) ? $config['allowed_tags'] :","path":"src/Content.php","position":5,"original_position":5,"commit_id":"7e6f8a42ae2cfbd1d3464f35ecc779d0ced942d3","original_commit_id":"7e6f8a42ae2cfbd1d3464f35ecc779d0ced942d3","user":{"login":"GawainLynch","id":1427081,"avatar_url":"https://avatars.githubusercontent.com/u/1427081?v=3","gravatar_id":"","url":"https://api.github.com/users/GawainLynch","html_url":"https://github.com/GawainLynch","followers_url":"https://api.github.com/users/GawainLynch/followers","following_url":"https://api.github.com/users/GawainLynch/following{/other_user}","gists_url":"https://api.github.com/users/GawainLynch/gists{/gist_id}","starred_url":"https://api.github.com/users/GawainLynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GawainLynch/subscriptions","organizations_url":"https://api.github.com/users/GawainLynch/orgs","repos_url":"https://api.github.com/users/GawainLynch/repos","events_url":"https://api.github.com/users/GawainLynch/events{/privacy}","received_events_url":"https://api.github.com/users/GawainLynch/received_events","type":"User","site_admin":false},"body":"Might be safer to set the defaults for those in [`Config::getDefaults()`](https://github.com/bolt/bolt/blob/master/src/Config.php#L7350) in case someone updates one set, but forgets the other ","created_at":"2015-03-15T13:34:17Z","updated_at":"2015-03-15T13:34:17Z","html_url":"https://github.com/bolt/bolt/pull/3142#discussion_r26447782","pull_request_url":"https://api.github.com/repos/bolt/bolt/pulls/3142","_links":{"self":{"href":"https://api.github.com/repos/bolt/bolt/pulls/comments/26447782"},"html":{"href":"https://github.com/bolt/bolt/pull/3142#discussion_r26447782"},"pull_request":{"href":"https://api.github.com/repos/bolt/bolt/pulls/3142"}}},"pull_request":{"url":"https://api.github.com/repos/bolt/bolt/pulls/3142","id":31200244,"html_url":"https://github.com/bolt/bolt/pull/3142","diff_url":"https://github.com/bolt/bolt/pull/3142.diff","patch_url":"https://github.com/bolt/bolt/pull/3142.patch","issue_url":"https://api.github.com/repos/bolt/bolt/issues/3142","number":3142,"state":"open","locked":false,"title":"Make the sanitisation of markdown fields configurable. Fixes #2992","user":{"login":"bobdenotter","id":1833361,"avatar_url":"https://avatars.githubusercontent.com/u/1833361?v=3","gravatar_id":"","url":"https://api.github.com/users/bobdenotter","html_url":"https://github.com/bobdenotter","followers_url":"https://api.github.com/users/bobdenotter/followers","following_url":"https://api.github.com/users/bobdenotter/following{/other_user}","gists_url":"https://api.github.com/users/bobdenotter/gists{/gist_id}","starred_url":"https://api.github.com/users/bobdenotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobdenotter/subscriptions","organizations_url":"https://api.github.com/users/bobdenotter/orgs","repos_url":"https://api.github.com/users/bobdenotter/repos","events_url":"https://api.github.com/users/bobdenotter/events{/privacy}","received_events_url":"https://api.github.com/users/bobdenotter/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-15T13:28:00Z","updated_at":"2015-03-15T13:34:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3878738af4689767e85225d3bee17ca663c949f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bolt/bolt/pulls/3142/commits","review_comments_url":"https://api.github.com/repos/bolt/bolt/pulls/3142/comments","review_comment_url":"https://api.github.com/repos/bolt/bolt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/3142/comments","statuses_url":"https://api.github.com/repos/bolt/bolt/statuses/7e6f8a42ae2cfbd1d3464f35ecc779d0ced942d3","head":{"label":"bobdenotter:fix/config-htmlcleaner","ref":"fix/config-htmlcleaner","sha":"7e6f8a42ae2cfbd1d3464f35ecc779d0ced942d3","user":{"login":"bobdenotter","id":1833361,"avatar_url":"https://avatars.githubusercontent.com/u/1833361?v=3","gravatar_id":"","url":"https://api.github.com/users/bobdenotter","html_url":"https://github.com/bobdenotter","followers_url":"https://api.github.com/users/bobdenotter/followers","following_url":"https://api.github.com/users/bobdenotter/following{/other_user}","gists_url":"https://api.github.com/users/bobdenotter/gists{/gist_id}","starred_url":"https://api.github.com/users/bobdenotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobdenotter/subscriptions","organizations_url":"https://api.github.com/users/bobdenotter/orgs","repos_url":"https://api.github.com/users/bobdenotter/repos","events_url":"https://api.github.com/users/bobdenotter/events{/privacy}","received_events_url":"https://api.github.com/users/bobdenotter/received_events","type":"User","site_admin":false},"repo":{"id":31773146,"name":"bolt","full_name":"bobdenotter/bolt","owner":{"login":"bobdenotter","id":1833361,"avatar_url":"https://avatars.githubusercontent.com/u/1833361?v=3","gravatar_id":"","url":"https://api.github.com/users/bobdenotter","html_url":"https://github.com/bobdenotter","followers_url":"https://api.github.com/users/bobdenotter/followers","following_url":"https://api.github.com/users/bobdenotter/following{/other_user}","gists_url":"https://api.github.com/users/bobdenotter/gists{/gist_id}","starred_url":"https://api.github.com/users/bobdenotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobdenotter/subscriptions","organizations_url":"https://api.github.com/users/bobdenotter/orgs","repos_url":"https://api.github.com/users/bobdenotter/repos","events_url":"https://api.github.com/users/bobdenotter/events{/privacy}","received_events_url":"https://api.github.com/users/bobdenotter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bobdenotter/bolt","description":"Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL.","fork":true,"url":"https://api.github.com/repos/bobdenotter/bolt","forks_url":"https://api.github.com/repos/bobdenotter/bolt/forks","keys_url":"https://api.github.com/repos/bobdenotter/bolt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bobdenotter/bolt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bobdenotter/bolt/teams","hooks_url":"https://api.github.com/repos/bobdenotter/bolt/hooks","issue_events_url":"https://api.github.com/repos/bobdenotter/bolt/issues/events{/number}","events_url":"https://api.github.com/repos/bobdenotter/bolt/events","assignees_url":"https://api.github.com/repos/bobdenotter/bolt/assignees{/user}","branches_url":"https://api.github.com/repos/bobdenotter/bolt/branches{/branch}","tags_url":"https://api.github.com/repos/bobdenotter/bolt/tags","blobs_url":"https://api.github.com/repos/bobdenotter/bolt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bobdenotter/bolt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bobdenotter/bolt/git/refs{/sha}","trees_url":"https://api.github.com/repos/bobdenotter/bolt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bobdenotter/bolt/statuses/{sha}","languages_url":"https://api.github.com/repos/bobdenotter/bolt/languages","stargazers_url":"https://api.github.com/repos/bobdenotter/bolt/stargazers","contributors_url":"https://api.github.com/repos/bobdenotter/bolt/contributors","subscribers_url":"https://api.github.com/repos/bobdenotter/bolt/subscribers","subscription_url":"https://api.github.com/repos/bobdenotter/bolt/subscription","commits_url":"https://api.github.com/repos/bobdenotter/bolt/commits{/sha}","git_commits_url":"https://api.github.com/repos/bobdenotter/bolt/git/commits{/sha}","comments_url":"https://api.github.com/repos/bobdenotter/bolt/comments{/number}","issue_comment_url":"https://api.github.com/repos/bobdenotter/bolt/issues/comments{/number}","contents_url":"https://api.github.com/repos/bobdenotter/bolt/contents/{+path}","compare_url":"https://api.github.com/repos/bobdenotter/bolt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bobdenotter/bolt/merges","archive_url":"https://api.github.com/repos/bobdenotter/bolt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bobdenotter/bolt/downloads","issues_url":"https://api.github.com/repos/bobdenotter/bolt/issues{/number}","pulls_url":"https://api.github.com/repos/bobdenotter/bolt/pulls{/number}","milestones_url":"https://api.github.com/repos/bobdenotter/bolt/milestones{/number}","notifications_url":"https://api.github.com/repos/bobdenotter/bolt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bobdenotter/bolt/labels{/name}","releases_url":"https://api.github.com/repos/bobdenotter/bolt/releases{/id}","created_at":"2015-03-06T14:34:12Z","updated_at":"2015-03-15T12:37:37Z","pushed_at":"2015-03-15T13:27:34Z","git_url":"git://github.com/bobdenotter/bolt.git","ssh_url":"git@github.com:bobdenotter/bolt.git","clone_url":"https://github.com/bobdenotter/bolt.git","svn_url":"https://github.com/bobdenotter/bolt","homepage":"","size":39934,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"bolt:master","ref":"master","sha":"e3ab46ce88f44fb07732338e9e2d243273ea6714","user":{"login":"bolt","id":3869752,"avatar_url":"https://avatars.githubusercontent.com/u/3869752?v=3","gravatar_id":"","url":"https://api.github.com/users/bolt","html_url":"https://github.com/bolt","followers_url":"https://api.github.com/users/bolt/followers","following_url":"https://api.github.com/users/bolt/following{/other_user}","gists_url":"https://api.github.com/users/bolt/gists{/gist_id}","starred_url":"https://api.github.com/users/bolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolt/subscriptions","organizations_url":"https://api.github.com/users/bolt/orgs","repos_url":"https://api.github.com/users/bolt/repos","events_url":"https://api.github.com/users/bolt/events{/privacy}","received_events_url":"https://api.github.com/users/bolt/received_events","type":"Organization","site_admin":false},"repo":{"id":4665416,"name":"bolt","full_name":"bolt/bolt","owner":{"login":"bolt","id":3869752,"avatar_url":"https://avatars.githubusercontent.com/u/3869752?v=3","gravatar_id":"","url":"https://api.github.com/users/bolt","html_url":"https://github.com/bolt","followers_url":"https://api.github.com/users/bolt/followers","following_url":"https://api.github.com/users/bolt/following{/other_user}","gists_url":"https://api.github.com/users/bolt/gists{/gist_id}","starred_url":"https://api.github.com/users/bolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolt/subscriptions","organizations_url":"https://api.github.com/users/bolt/orgs","repos_url":"https://api.github.com/users/bolt/repos","events_url":"https://api.github.com/users/bolt/events{/privacy}","received_events_url":"https://api.github.com/users/bolt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bolt/bolt","description":"Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL.","fork":false,"url":"https://api.github.com/repos/bolt/bolt","forks_url":"https://api.github.com/repos/bolt/bolt/forks","keys_url":"https://api.github.com/repos/bolt/bolt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bolt/bolt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bolt/bolt/teams","hooks_url":"https://api.github.com/repos/bolt/bolt/hooks","issue_events_url":"https://api.github.com/repos/bolt/bolt/issues/events{/number}","events_url":"https://api.github.com/repos/bolt/bolt/events","assignees_url":"https://api.github.com/repos/bolt/bolt/assignees{/user}","branches_url":"https://api.github.com/repos/bolt/bolt/branches{/branch}","tags_url":"https://api.github.com/repos/bolt/bolt/tags","blobs_url":"https://api.github.com/repos/bolt/bolt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bolt/bolt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bolt/bolt/git/refs{/sha}","trees_url":"https://api.github.com/repos/bolt/bolt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bolt/bolt/statuses/{sha}","languages_url":"https://api.github.com/repos/bolt/bolt/languages","stargazers_url":"https://api.github.com/repos/bolt/bolt/stargazers","contributors_url":"https://api.github.com/repos/bolt/bolt/contributors","subscribers_url":"https://api.github.com/repos/bolt/bolt/subscribers","subscription_url":"https://api.github.com/repos/bolt/bolt/subscription","commits_url":"https://api.github.com/repos/bolt/bolt/commits{/sha}","git_commits_url":"https://api.github.com/repos/bolt/bolt/git/commits{/sha}","comments_url":"https://api.github.com/repos/bolt/bolt/comments{/number}","issue_comment_url":"https://api.github.com/repos/bolt/bolt/issues/comments{/number}","contents_url":"https://api.github.com/repos/bolt/bolt/contents/{+path}","compare_url":"https://api.github.com/repos/bolt/bolt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bolt/bolt/merges","archive_url":"https://api.github.com/repos/bolt/bolt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bolt/bolt/downloads","issues_url":"https://api.github.com/repos/bolt/bolt/issues{/number}","pulls_url":"https://api.github.com/repos/bolt/bolt/pulls{/number}","milestones_url":"https://api.github.com/repos/bolt/bolt/milestones{/number}","notifications_url":"https://api.github.com/repos/bolt/bolt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bolt/bolt/labels{/name}","releases_url":"https://api.github.com/repos/bolt/bolt/releases{/id}","created_at":"2012-06-14T16:07:54Z","updated_at":"2015-03-15T12:46:12Z","pushed_at":"2015-03-15T12:46:08Z","git_url":"git://github.com/bolt/bolt.git","ssh_url":"git@github.com:bolt/bolt.git","clone_url":"https://github.com/bolt/bolt.git","svn_url":"https://github.com/bolt/bolt","homepage":"","size":61745,"stargazers_count":1708,"watchers_count":1708,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":421,"mirror_url":null,"open_issues_count":106,"forks":421,"open_issues":106,"watchers":1708,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bolt/bolt/pulls/3142"},"html":{"href":"https://github.com/bolt/bolt/pull/3142"},"issue":{"href":"https://api.github.com/repos/bolt/bolt/issues/3142"},"comments":{"href":"https://api.github.com/repos/bolt/bolt/issues/3142/comments"},"review_comments":{"href":"https://api.github.com/repos/bolt/bolt/pulls/3142/comments"},"review_comment":{"href":"https://api.github.com/repos/bolt/bolt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bolt/bolt/pulls/3142/commits"},"statuses":{"href":"https://api.github.com/repos/bolt/bolt/statuses/7e6f8a42ae2cfbd1d3464f35ecc779d0ced942d3"}}}}