{"action":"created","comment":{"url":"https://api.github.com/repos/openscholar/openscholar/pulls/comments/26301023","id":26301023,"diff_hunk":"@@ -1148,6 +1148,19 @@ function os_publications_node_delete($node) {\n }\n \n /**\n+ * Implements hook_node_presave().\n+ */\n+function os_publications_node_presave($node) {\n+  // Remove any inline style tag.\n+  $text = preg_replace('#(<[a-z ]*)(style=(\"|\\')(.*?)(\"|\\'))([a-z ]*>)#', '\\\\1\\\\6', $node->title);\n+  // Remove rows breaking from any type.\n+  $text = str_replace(array('<br >', '<br />'), ' ', $text);\n+  // Keep only the tags that we allow in the title WYSIWYG and keep it no more\n+  // then 255 characters.\n+  $node->title = substr(strip_tags($text, '<em><sup><sub>'), 0, 255);","path":"openscholar/modules/os_features/os_publications/os_publications.module","position":13,"original_position":13,"commit_id":"50899a843ab1781c07e0ad91cab2faba2277b4d8","original_commit_id":"50899a843ab1781c07e0ad91cab2faba2277b4d8","user":{"login":"rbran100","id":651318,"avatar_url":"https://avatars.githubusercontent.com/u/651318?v=3","gravatar_id":"","url":"https://api.github.com/users/rbran100","html_url":"https://github.com/rbran100","followers_url":"https://api.github.com/users/rbran100/followers","following_url":"https://api.github.com/users/rbran100/following{/other_user}","gists_url":"https://api.github.com/users/rbran100/gists{/gist_id}","starred_url":"https://api.github.com/users/rbran100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbran100/subscriptions","organizations_url":"https://api.github.com/users/rbran100/orgs","repos_url":"https://api.github.com/users/rbran100/repos","events_url":"https://api.github.com/users/rbran100/events{/privacy}","received_events_url":"https://api.github.com/users/rbran100/received_events","type":"User","site_admin":false},"body":"get list from field config","created_at":"2015-03-12T13:37:51Z","updated_at":"2015-03-12T13:37:51Z","html_url":"https://github.com/openscholar/openscholar/pull/7031#discussion_r26301023","pull_request_url":"https://api.github.com/repos/openscholar/openscholar/pulls/7031","_links":{"self":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/comments/26301023"},"html":{"href":"https://github.com/openscholar/openscholar/pull/7031#discussion_r26301023"},"pull_request":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/7031"}}},"pull_request":{"url":"https://api.github.com/repos/openscholar/openscholar/pulls/7031","id":31017542,"html_url":"https://github.com/openscholar/openscholar/pull/7031","diff_url":"https://github.com/openscholar/openscholar/pull/7031.diff","patch_url":"https://github.com/openscholar/openscholar/pull/7031.patch","issue_url":"https://api.github.com/repos/openscholar/openscholar/issues/7031","number":7031,"state":"open","locked":false,"title":"Handle long titled publications.","user":{"login":"RoySegall","id":1222368,"avatar_url":"https://avatars.githubusercontent.com/u/1222368?v=3","gravatar_id":"","url":"https://api.github.com/users/RoySegall","html_url":"https://github.com/RoySegall","followers_url":"https://api.github.com/users/RoySegall/followers","following_url":"https://api.github.com/users/RoySegall/following{/other_user}","gists_url":"https://api.github.com/users/RoySegall/gists{/gist_id}","starred_url":"https://api.github.com/users/RoySegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoySegall/subscriptions","organizations_url":"https://api.github.com/users/RoySegall/orgs","repos_url":"https://api.github.com/users/RoySegall/repos","events_url":"https://api.github.com/users/RoySegall/events{/privacy}","received_events_url":"https://api.github.com/users/RoySegall/received_events","type":"User","site_admin":false},"body":"#6998","created_at":"2015-03-12T09:01:30Z","updated_at":"2015-03-12T13:37:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d6272d55f54c833b5e05425096141893b60d109","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openscholar/openscholar/pulls/7031/commits","review_comments_url":"https://api.github.com/repos/openscholar/openscholar/pulls/7031/comments","review_comment_url":"https://api.github.com/repos/openscholar/openscholar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openscholar/openscholar/issues/7031/comments","statuses_url":"https://api.github.com/repos/openscholar/openscholar/statuses/50899a843ab1781c07e0ad91cab2faba2277b4d8","head":{"label":"openscholar:6998","ref":"6998","sha":"50899a843ab1781c07e0ad91cab2faba2277b4d8","user":{"login":"openscholar","id":611073,"avatar_url":"https://avatars.githubusercontent.com/u/611073?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar","html_url":"https://github.com/openscholar","followers_url":"https://api.github.com/users/openscholar/followers","following_url":"https://api.github.com/users/openscholar/following{/other_user}","gists_url":"https://api.github.com/users/openscholar/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar/subscriptions","organizations_url":"https://api.github.com/users/openscholar/orgs","repos_url":"https://api.github.com/users/openscholar/repos","events_url":"https://api.github.com/users/openscholar/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar/received_events","type":"Organization","site_admin":false},"repo":{"id":1440092,"name":"openscholar","full_name":"openscholar/openscholar","owner":{"login":"openscholar","id":611073,"avatar_url":"https://avatars.githubusercontent.com/u/611073?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar","html_url":"https://github.com/openscholar","followers_url":"https://api.github.com/users/openscholar/followers","following_url":"https://api.github.com/users/openscholar/following{/other_user}","gists_url":"https://api.github.com/users/openscholar/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar/subscriptions","organizations_url":"https://api.github.com/users/openscholar/orgs","repos_url":"https://api.github.com/users/openscholar/repos","events_url":"https://api.github.com/users/openscholar/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openscholar/openscholar","description":"OpenScholar project ","fork":false,"url":"https://api.github.com/repos/openscholar/openscholar","forks_url":"https://api.github.com/repos/openscholar/openscholar/forks","keys_url":"https://api.github.com/repos/openscholar/openscholar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openscholar/openscholar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openscholar/openscholar/teams","hooks_url":"https://api.github.com/repos/openscholar/openscholar/hooks","issue_events_url":"https://api.github.com/repos/openscholar/openscholar/issues/events{/number}","events_url":"https://api.github.com/repos/openscholar/openscholar/events","assignees_url":"https://api.github.com/repos/openscholar/openscholar/assignees{/user}","branches_url":"https://api.github.com/repos/openscholar/openscholar/branches{/branch}","tags_url":"https://api.github.com/repos/openscholar/openscholar/tags","blobs_url":"https://api.github.com/repos/openscholar/openscholar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openscholar/openscholar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openscholar/openscholar/git/refs{/sha}","trees_url":"https://api.github.com/repos/openscholar/openscholar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openscholar/openscholar/statuses/{sha}","languages_url":"https://api.github.com/repos/openscholar/openscholar/languages","stargazers_url":"https://api.github.com/repos/openscholar/openscholar/stargazers","contributors_url":"https://api.github.com/repos/openscholar/openscholar/contributors","subscribers_url":"https://api.github.com/repos/openscholar/openscholar/subscribers","subscription_url":"https://api.github.com/repos/openscholar/openscholar/subscription","commits_url":"https://api.github.com/repos/openscholar/openscholar/commits{/sha}","git_commits_url":"https://api.github.com/repos/openscholar/openscholar/git/commits{/sha}","comments_url":"https://api.github.com/repos/openscholar/openscholar/comments{/number}","issue_comment_url":"https://api.github.com/repos/openscholar/openscholar/issues/comments{/number}","contents_url":"https://api.github.com/repos/openscholar/openscholar/contents/{+path}","compare_url":"https://api.github.com/repos/openscholar/openscholar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openscholar/openscholar/merges","archive_url":"https://api.github.com/repos/openscholar/openscholar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openscholar/openscholar/downloads","issues_url":"https://api.github.com/repos/openscholar/openscholar/issues{/number}","pulls_url":"https://api.github.com/repos/openscholar/openscholar/pulls{/number}","milestones_url":"https://api.github.com/repos/openscholar/openscholar/milestones{/number}","notifications_url":"https://api.github.com/repos/openscholar/openscholar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openscholar/openscholar/labels{/name}","releases_url":"https://api.github.com/repos/openscholar/openscholar/releases{/id}","created_at":"2011-03-04T16:39:08Z","updated_at":"2015-03-10T21:05:06Z","pushed_at":"2015-03-12T13:05:33Z","git_url":"git://github.com/openscholar/openscholar.git","ssh_url":"git@github.com:openscholar/openscholar.git","clone_url":"https://github.com/openscholar/openscholar.git","svn_url":"https://github.com/openscholar/openscholar","homepage":"http://theopenscholar.org","size":155162,"stargazers_count":126,"watchers_count":126,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":382,"forks":56,"open_issues":382,"watchers":126,"default_branch":"SCHOLAR-3.x"}},"base":{"label":"openscholar:SCHOLAR-3.x","ref":"SCHOLAR-3.x","sha":"4b32f4f0ffdec6eb244cfe443ae63ab395fa0596","user":{"login":"openscholar","id":611073,"avatar_url":"https://avatars.githubusercontent.com/u/611073?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar","html_url":"https://github.com/openscholar","followers_url":"https://api.github.com/users/openscholar/followers","following_url":"https://api.github.com/users/openscholar/following{/other_user}","gists_url":"https://api.github.com/users/openscholar/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar/subscriptions","organizations_url":"https://api.github.com/users/openscholar/orgs","repos_url":"https://api.github.com/users/openscholar/repos","events_url":"https://api.github.com/users/openscholar/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar/received_events","type":"Organization","site_admin":false},"repo":{"id":1440092,"name":"openscholar","full_name":"openscholar/openscholar","owner":{"login":"openscholar","id":611073,"avatar_url":"https://avatars.githubusercontent.com/u/611073?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar","html_url":"https://github.com/openscholar","followers_url":"https://api.github.com/users/openscholar/followers","following_url":"https://api.github.com/users/openscholar/following{/other_user}","gists_url":"https://api.github.com/users/openscholar/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar/subscriptions","organizations_url":"https://api.github.com/users/openscholar/orgs","repos_url":"https://api.github.com/users/openscholar/repos","events_url":"https://api.github.com/users/openscholar/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openscholar/openscholar","description":"OpenScholar project ","fork":false,"url":"https://api.github.com/repos/openscholar/openscholar","forks_url":"https://api.github.com/repos/openscholar/openscholar/forks","keys_url":"https://api.github.com/repos/openscholar/openscholar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openscholar/openscholar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openscholar/openscholar/teams","hooks_url":"https://api.github.com/repos/openscholar/openscholar/hooks","issue_events_url":"https://api.github.com/repos/openscholar/openscholar/issues/events{/number}","events_url":"https://api.github.com/repos/openscholar/openscholar/events","assignees_url":"https://api.github.com/repos/openscholar/openscholar/assignees{/user}","branches_url":"https://api.github.com/repos/openscholar/openscholar/branches{/branch}","tags_url":"https://api.github.com/repos/openscholar/openscholar/tags","blobs_url":"https://api.github.com/repos/openscholar/openscholar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openscholar/openscholar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openscholar/openscholar/git/refs{/sha}","trees_url":"https://api.github.com/repos/openscholar/openscholar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openscholar/openscholar/statuses/{sha}","languages_url":"https://api.github.com/repos/openscholar/openscholar/languages","stargazers_url":"https://api.github.com/repos/openscholar/openscholar/stargazers","contributors_url":"https://api.github.com/repos/openscholar/openscholar/contributors","subscribers_url":"https://api.github.com/repos/openscholar/openscholar/subscribers","subscription_url":"https://api.github.com/repos/openscholar/openscholar/subscription","commits_url":"https://api.github.com/repos/openscholar/openscholar/commits{/sha}","git_commits_url":"https://api.github.com/repos/openscholar/openscholar/git/commits{/sha}","comments_url":"https://api.github.com/repos/openscholar/openscholar/comments{/number}","issue_comment_url":"https://api.github.com/repos/openscholar/openscholar/issues/comments{/number}","contents_url":"https://api.github.com/repos/openscholar/openscholar/contents/{+path}","compare_url":"https://api.github.com/repos/openscholar/openscholar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openscholar/openscholar/merges","archive_url":"https://api.github.com/repos/openscholar/openscholar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openscholar/openscholar/downloads","issues_url":"https://api.github.com/repos/openscholar/openscholar/issues{/number}","pulls_url":"https://api.github.com/repos/openscholar/openscholar/pulls{/number}","milestones_url":"https://api.github.com/repos/openscholar/openscholar/milestones{/number}","notifications_url":"https://api.github.com/repos/openscholar/openscholar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openscholar/openscholar/labels{/name}","releases_url":"https://api.github.com/repos/openscholar/openscholar/releases{/id}","created_at":"2011-03-04T16:39:08Z","updated_at":"2015-03-10T21:05:06Z","pushed_at":"2015-03-12T13:05:33Z","git_url":"git://github.com/openscholar/openscholar.git","ssh_url":"git@github.com:openscholar/openscholar.git","clone_url":"https://github.com/openscholar/openscholar.git","svn_url":"https://github.com/openscholar/openscholar","homepage":"http://theopenscholar.org","size":155162,"stargazers_count":126,"watchers_count":126,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":382,"forks":56,"open_issues":382,"watchers":126,"default_branch":"SCHOLAR-3.x"}},"_links":{"self":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/7031"},"html":{"href":"https://github.com/openscholar/openscholar/pull/7031"},"issue":{"href":"https://api.github.com/repos/openscholar/openscholar/issues/7031"},"comments":{"href":"https://api.github.com/repos/openscholar/openscholar/issues/7031/comments"},"review_comments":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/7031/comments"},"review_comment":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/7031/commits"},"statuses":{"href":"https://api.github.com/repos/openscholar/openscholar/statuses/50899a843ab1781c07e0ad91cab2faba2277b4d8"}}}}