GitHub PullRequestEvent at 2014-07-10 02:48:19
Repository: richard
Actor: magnunleno
Payload: {"action":"opened","number":247,"pull_request":{"url":"https://api.github.com/repos/willkg/richard/pulls/247","id":18198391,"html_url":"https://github.com/willkg/richard/pull/247","diff_url":"https://github.com/willkg/richard/pull/247.diff","patch_url":"https://github.com/willkg/richard/pull/247.patch","issue_url":"https://api.github.com/repos/willkg/richard/issues/247","number":247,"state":"open","title":"Fix HTML tags and quotes in meta caption tag","user":{"login":"magnunleno","id":353311,"avatar_url":"https://avatars.githubusercontent.com/u/353311?","gravatar_id":"0b742e810afb53ed8ceb810576278784","url":"https://api.github.com/users/magnunleno","html_url":"https://github.com/magnunleno","followers_url":"https://api.github.com/users/magnunleno/followers","following_url":"https://api.github.com/users/magnunleno/following{/other_user}","gists_url":"https://api.github.com/users/magnunleno/gists{/gist_id}","starred_url":"https://api.github.com/users/magnunleno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnunleno/subscriptions","organizations_url":"https://api.github.com/users/magnunleno/orgs","repos_url":"https://api.github.com/users/magnunleno/repos","events_url":"https://api.github.com/users/magnunleno/events{/privacy}","received_events_url":"https://api.github.com/users/magnunleno/received_events","type":"User","site_admin":false},"body":"I was watching this Raymond Hettinger video[1] and noticed an unexpected `\"/>` after the video description. As it happened with me (using Pelican and Jinja) I knew it was probably caused by a not escaped double quote. I'm not experienced in Django templates so I googled around and found the appropriate filters to escape and remove HTML tags, but I'm not sure about the `|safe`.\r\n\r\n[1]: http://pyvideo.org/video/1780/transforming-code-into-beautiful-idiomatic-pytho","created_at":"2014-07-10T02:48:18Z","updated_at":"2014-07-10T02:48:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/willkg/richard/pulls/247/commits","review_comments_url":"https://api.github.com/repos/willkg/richard/pulls/247/comments","review_comment_url":"https://api.github.com/repos/willkg/richard/pulls/comments/{number}","comments_url":"https://api.github.com/repos/willkg/richard/issues/247/comments","statuses_url":"https://api.github.com/repos/willkg/richard/statuses/ea9ac30522e1b95d2f424ea81964a86f31529540","head":{"label":"magnunleno:patch-1","ref":"patch-1","sha":"ea9ac30522e1b95d2f424ea81964a86f31529540","user":{"login":"magnunleno","id":353311,"avatar_url":"https://avatars.githubusercontent.com/u/353311?","gravatar_id":"0b742e810afb53ed8ceb810576278784","url":"https://api.github.com/users/magnunleno","html_url":"https://github.com/magnunleno","followers_url":"https://api.github.com/users/magnunleno/followers","following_url":"https://api.github.com/users/magnunleno/following{/other_user}","gists_url":"https://api.github.com/users/magnunleno/gists{/gist_id}","starred_url":"https://api.github.com/users/magnunleno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnunleno/subscriptions","organizations_url":"https://api.github.com/users/magnunleno/orgs","repos_url":"https://api.github.com/users/magnunleno/repos","events_url":"https://api.github.com/users/magnunleno/events{/privacy}","received_events_url":"https://api.github.com/users/magnunleno/received_events","type":"User","site_admin":false},"repo":{"id":21676632,"name":"richard","full_name":"magnunleno/richard","owner":{"login":"magnunleno","id":353311,"avatar_url":"https://avatars.githubusercontent.com/u/353311?","gravatar_id":"0b742e810afb53ed8ceb810576278784","url":"https://api.github.com/users/magnunleno","html_url":"https://github.com/magnunleno","followers_url":"https://api.github.com/users/magnunleno/followers","following_url":"https://api.github.com/users/magnunleno/following{/other_user}","gists_url":"https://api.github.com/users/magnunleno/gists{/gist_id}","starred_url":"https://api.github.com/users/magnunleno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnunleno/subscriptions","organizations_url":"https://api.github.com/users/magnunleno/orgs","repos_url":"https://api.github.com/users/magnunleno/repos","events_url":"https://api.github.com/users/magnunleno/events{/privacy}","received_events_url":"https://api.github.com/users/magnunleno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/magnunleno/richard","description":"video indexing site","fork":true,"url":"https://api.github.com/repos/magnunleno/richard","forks_url":"https://api.github.com/repos/magnunleno/richard/forks","keys_url":"https://api.github.com/repos/magnunleno/richard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magnunleno/richard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magnunleno/richard/teams","hooks_url":"https://api.github.com/repos/magnunleno/richard/hooks","issue_events_url":"https://api.github.com/repos/magnunleno/richard/issues/events{/number}","events_url":"https://api.github.com/repos/magnunleno/richard/events","assignees_url":"https://api.github.com/repos/magnunleno/richard/assignees{/user}","branches_url":"https://api.github.com/repos/magnunleno/richard/branches{/branch}","tags_url":"https://api.github.com/repos/magnunleno/richard/tags","blobs_url":"https://api.github.com/repos/magnunleno/richard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magnunleno/richard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magnunleno/richard/git/refs{/sha}","trees_url":"https://api.github.com/repos/magnunleno/richard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magnunleno/richard/statuses/{sha}","languages_url":"https://api.github.com/repos/magnunleno/richard/languages","stargazers_url":"https://api.github.com/repos/magnunleno/richard/stargazers","contributors_url":"https://api.github.com/repos/magnunleno/richard/contributors","subscribers_url":"https://api.github.com/repos/magnunleno/richard/subscribers","subscription_url":"https://api.github.com/repos/magnunleno/richard/subscription","commits_url":"https://api.github.com/repos/magnunleno/richard/commits{/sha}","git_commits_url":"https://api.github.com/repos/magnunleno/richard/git/commits{/sha}","comments_url":"https://api.github.com/repos/magnunleno/richard/comments{/number}","issue_comment_url":"https://api.github.com/repos/magnunleno/richard/issues/comments/{number}","contents_url":"https://api.github.com/repos/magnunleno/richard/contents/{+path}","compare_url":"https://api.github.com/repos/magnunleno/richard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magnunleno/richard/merges","archive_url":"https://api.github.com/repos/magnunleno/richard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magnunleno/richard/downloads","issues_url":"https://api.github.com/repos/magnunleno/richard/issues{/number}","pulls_url":"https://api.github.com/repos/magnunleno/richard/pulls{/number}","milestones_url":"https://api.github.com/repos/magnunleno/richard/milestones{/number}","notifications_url":"https://api.github.com/repos/magnunleno/richard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magnunleno/richard/labels{/name}","releases_url":"https://api.github.com/repos/magnunleno/richard/releases{/id}","created_at":"2014-07-10T02:36:07Z","updated_at":"2014-07-10T02:42:45Z","pushed_at":"2014-07-10T02:42:45Z","git_url":"git://github.com/magnunleno/richard.git","ssh_url":"git@github.com:magnunleno/richard.git","clone_url":"https://github.com/magnunleno/richard.git","svn_url":"https://github.com/magnunleno/richard","homepage":"","size":3053,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"willkg:master","ref":"master","sha":"1e06ecef3a1d831b3e05a65de42ecbb3809021bf","user":{"login":"willkg","id":820826,"avatar_url":"https://avatars.githubusercontent.com/u/820826?","gravatar_id":"cc327cef30f763a450644d4b5df895c7","url":"https://api.github.com/users/willkg","html_url":"https://github.com/willkg","followers_url":"https://api.github.com/users/willkg/followers","following_url":"https://api.github.com/users/willkg/following{/other_user}","gists_url":"https://api.github.com/users/willkg/gists{/gist_id}","starred_url":"https://api.github.com/users/willkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willkg/subscriptions","organizations_url":"https://api.github.com/users/willkg/orgs","repos_url":"https://api.github.com/users/willkg/repos","events_url":"https://api.github.com/users/willkg/events{/privacy}","received_events_url":"https://api.github.com/users/willkg/received_events","type":"User","site_admin":false},"repo":{"id":3615289,"name":"richard","full_name":"willkg/richard","owner":{"login":"willkg","id":820826,"avatar_url":"https://avatars.githubusercontent.com/u/820826?","gravatar_id":"cc327cef30f763a450644d4b5df895c7","url":"https://api.github.com/users/willkg","html_url":"https://github.com/willkg","followers_url":"https://api.github.com/users/willkg/followers","following_url":"https://api.github.com/users/willkg/following{/other_user}","gists_url":"https://api.github.com/users/willkg/gists{/gist_id}","starred_url":"https://api.github.com/users/willkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willkg/subscriptions","organizations_url":"https://api.github.com/users/willkg/orgs","repos_url":"https://api.github.com/users/willkg/repos","events_url":"https://api.github.com/users/willkg/events{/privacy}","received_events_url":"https://api.github.com/users/willkg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willkg/richard","description":"video indexing site","fork":false,"url":"https://api.github.com/repos/willkg/richard","forks_url":"https://api.github.com/repos/willkg/richard/forks","keys_url":"https://api.github.com/repos/willkg/richard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willkg/richard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willkg/richard/teams","hooks_url":"https://api.github.com/repos/willkg/richard/hooks","issue_events_url":"https://api.github.com/repos/willkg/richard/issues/events{/number}","events_url":"https://api.github.com/repos/willkg/richard/events","assignees_url":"https://api.github.com/repos/willkg/richard/assignees{/user}","branches_url":"https://api.github.com/repos/willkg/richard/branches{/branch}","tags_url":"https://api.github.com/repos/willkg/richard/tags","blobs_url":"https://api.github.com/repos/willkg/richard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willkg/richard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willkg/richard/git/refs{/sha}","trees_url":"https://api.github.com/repos/willkg/richard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willkg/richard/statuses/{sha}","languages_url":"https://api.github.com/repos/willkg/richard/languages","stargazers_url":"https://api.github.com/repos/willkg/richard/stargazers","contributors_url":"https://api.github.com/repos/willkg/richard/contributors","subscribers_url":"https://api.github.com/repos/willkg/richard/subscribers","subscription_url":"https://api.github.com/repos/willkg/richard/subscription","commits_url":"https://api.github.com/repos/willkg/richard/commits{/sha}","git_commits_url":"https://api.github.com/repos/willkg/richard/git/commits{/sha}","comments_url":"https://api.github.com/repos/willkg/richard/comments{/number}","issue_comment_url":"https://api.github.com/repos/willkg/richard/issues/comments/{number}","contents_url":"https://api.github.com/repos/willkg/richard/contents/{+path}","compare_url":"https://api.github.com/repos/willkg/richard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willkg/richard/merges","archive_url":"https://api.github.com/repos/willkg/richard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willkg/richard/downloads","issues_url":"https://api.github.com/repos/willkg/richard/issues{/number}","pulls_url":"https://api.github.com/repos/willkg/richard/pulls{/number}","milestones_url":"https://api.github.com/repos/willkg/richard/milestones{/number}","notifications_url":"https://api.github.com/repos/willkg/richard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willkg/richard/labels{/name}","releases_url":"https://api.github.com/repos/willkg/richard/releases{/id}","created_at":"2012-03-04T01:44:03Z","updated_at":"2014-07-06T11:37:01Z","pushed_at":"2014-07-03T16:38:38Z","git_url":"git://github.com/willkg/richard.git","ssh_url":"git@github.com:willkg/richard.git","clone_url":"https://github.com/willkg/richard.git","svn_url":"https://github.com/willkg/richard","homepage":"","size":3053,"stargazers_count":171,"watchers_count":171,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":48,"mirror_url":null,"open_issues_count":47,"forks":48,"open_issues":47,"watchers":171,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/willkg/richard/pulls/247"},"html":{"href":"https://github.com/willkg/richard/pull/247"},"issue":{"href":"https://api.github.com/repos/willkg/richard/issues/247"},"comments":{"href":"https://api.github.com/repos/willkg/richard/issues/247/comments"},"review_comments":{"href":"https://api.github.com/repos/willkg/richard/pulls/247/comments"},"review_comment":{"href":"https://api.github.com/repos/willkg/richard/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/willkg/richard/pulls/247/commits"},"statuses":{"href":"https://api.github.com/repos/willkg/richard/statuses/ea9ac30522e1b95d2f424ea81964a86f31529540"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}