{"action":"created","issue":{"url":"https://api.github.com/repos/flavorjones/loofah/issues/104","repository_url":"https://api.github.com/repos/flavorjones/loofah","labels_url":"https://api.github.com/repos/flavorjones/loofah/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/flavorjones/loofah/issues/104/comments","events_url":"https://api.github.com/repos/flavorjones/loofah/issues/104/events","html_url":"https://github.com/flavorjones/loofah/issues/104","id":137574296,"number":104,"title":"Allow \"tel:\" links","user":{"login":"DannyBen","id":2405099,"avatar_url":"https://avatars1.githubusercontent.com/u/2405099?v=4","gravatar_id":"","url":"https://api.github.com/users/DannyBen","html_url":"https://github.com/DannyBen","followers_url":"https://api.github.com/users/DannyBen/followers","following_url":"https://api.github.com/users/DannyBen/following{/other_user}","gists_url":"https://api.github.com/users/DannyBen/gists{/gist_id}","starred_url":"https://api.github.com/users/DannyBen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DannyBen/subscriptions","organizations_url":"https://api.github.com/users/DannyBen/orgs","repos_url":"https://api.github.com/users/DannyBen/repos","events_url":"https://api.github.com/users/DannyBen/events{/privacy}","received_events_url":"https://api.github.com/users/DannyBen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-03-01T13:27:33Z","updated_at":"2018-03-26T11:32:42Z","closed_at":null,"author_association":"NONE","body":"Hello,\n\nCan we allow `tel:` links?\nI believe it is [somewhere in this neighborhood](https://github.com/flavorjones/loofah/blob/89b4738c5305faa541519cce7e96689cd356488d/lib/loofah/html5/whitelist.rb#L147)\n\n(The below was copied verbatim from [this rails-html-sanitizer issue](https://github.com/rails/rails-html-sanitizer/issues/52#issuecomment-190709420))\n\nIs it intentional that `tel:` links are not allowed? Seems like a harmless protocol that should be allowed\n\n```\n>> sanitize(\"<a href='http://123'>click</a>\")\n=> \"<a href=\\\"http://123\\\">click</a>\"\n>> sanitize(\"<a href='tel:123'>click</a>\")\n=> \"<a>click</a>\"\n```\n\nAs a workaround, I am currently using:\n\n``` ruby\n# config/initializers/sanitize.rb\nLoofah::HTML5::WhiteList::ALLOWED_PROTOCOLS.add('tel')\n```\n\nAs proposed by [this StackOverflow](http://stackoverflow.com/questions/35670896/why-are-tel-links-removed-in-sanitization-and-how-to-allow-them/35671276#35671276) answer\n"},"comment":{"url":"https://api.github.com/repos/flavorjones/loofah/issues/comments/376135173","html_url":"https://github.com/flavorjones/loofah/issues/104#issuecomment-376135173","issue_url":"https://api.github.com/repos/flavorjones/loofah/issues/104","id":376135173,"user":{"login":"vadimeremeev","id":944755,"avatar_url":"https://avatars2.githubusercontent.com/u/944755?v=4","gravatar_id":"","url":"https://api.github.com/users/vadimeremeev","html_url":"https://github.com/vadimeremeev","followers_url":"https://api.github.com/users/vadimeremeev/followers","following_url":"https://api.github.com/users/vadimeremeev/following{/other_user}","gists_url":"https://api.github.com/users/vadimeremeev/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimeremeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimeremeev/subscriptions","organizations_url":"https://api.github.com/users/vadimeremeev/orgs","repos_url":"https://api.github.com/users/vadimeremeev/repos","events_url":"https://api.github.com/users/vadimeremeev/events{/privacy}","received_events_url":"https://api.github.com/users/vadimeremeev/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T11:32:41Z","updated_at":"2018-03-26T11:32:41Z","author_association":"NONE","body":"Created pull request https://github.com/flavorjones/loofah/pull/147"}}
{"actor":{"display_login":"vadimeremeev"}}