{"action":"created","issue":{"url":"https://api.github.com/repos/boothj5/profanity/issues/364","repository_url":"https://api.github.com/repos/boothj5/profanity","labels_url":"https://api.github.com/repos/boothj5/profanity/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/boothj5/profanity/issues/364/comments","events_url":"https://api.github.com/repos/boothj5/profanity/issues/364/events","html_url":"https://github.com/boothj5/profanity/issues/364","id":34737323,"number":364,"title":"OTR HTML Encoding","user":{"login":"NoSkills","id":5393048,"avatar_url":"https://avatars.githubusercontent.com/u/5393048?v=3","gravatar_id":"","url":"https://api.github.com/users/NoSkills","html_url":"https://github.com/NoSkills","followers_url":"https://api.github.com/users/NoSkills/followers","following_url":"https://api.github.com/users/NoSkills/following{/other_user}","gists_url":"https://api.github.com/users/NoSkills/gists{/gist_id}","starred_url":"https://api.github.com/users/NoSkills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoSkills/subscriptions","organizations_url":"https://api.github.com/users/NoSkills/orgs","repos_url":"https://api.github.com/users/NoSkills/repos","events_url":"https://api.github.com/users/NoSkills/events{/privacy}","received_events_url":"https://api.github.com/users/NoSkills/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/boothj5/profanity/labels/feature","name":"feature","color":"d7e102"},{"url":"https://api.github.com/repos/boothj5/profanity/labels/medium","name":"medium","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2014-06-01T21:31:31Z","updated_at":"2016-07-28T18:48:45Z","closed_at":null,"body":"Pidgin and other IM Clients with OTR capability have a feature called \"Convert HTML\", which basically removes HTML tags out of the incoming messages.\r\n\r\nThe problem is that if you communicate with Profanity and OTR to a Pidgin client, HTML is bloating the text and it's very difficult to read.\r\n\r\nThis is especially true if you're talking to someone using Adium (https://trac.adium.im/ticket/6901) as you will get spammed with < FONT >.\r\n\r\nAn example copy-paste on something with URL and quotes.\r\n23:24:58 - M: & quot;inspired by hrf=\" http://irssi.org/ \" >Irssi</ a >& quot;\r\n\r\nAnything with a long URL is a complete mess.\r\n"},"comment":{"url":"https://api.github.com/repos/boothj5/profanity/issues/comments/235988889","html_url":"https://github.com/boothj5/profanity/issues/364#issuecomment-235988889","issue_url":"https://api.github.com/repos/boothj5/profanity/issues/364","id":235988889,"user":{"login":"nd2s","id":439849,"avatar_url":"https://avatars.githubusercontent.com/u/439849?v=3","gravatar_id":"","url":"https://api.github.com/users/nd2s","html_url":"https://github.com/nd2s","followers_url":"https://api.github.com/users/nd2s/followers","following_url":"https://api.github.com/users/nd2s/following{/other_user}","gists_url":"https://api.github.com/users/nd2s/gists{/gist_id}","starred_url":"https://api.github.com/users/nd2s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nd2s/subscriptions","organizations_url":"https://api.github.com/users/nd2s/orgs","repos_url":"https://api.github.com/users/nd2s/repos","events_url":"https://api.github.com/users/nd2s/events{/privacy}","received_events_url":"https://api.github.com/users/nd2s/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T18:48:45Z","updated_at":"2016-07-28T18:48:45Z","body":"I did a quick `printf` debug earlier and discovered that the HTML I sent with Gajim was not escaped. This is a total mess.\r\n\r\nI agree, this cannot be implemented into the core. The best solution would be to find the responsible Adium developers and punch them. The Adium issue is 9 (!) years old and there seems to be no progress.\r\n\r\nEven if this is implemented as a plugin, it can't just remove all HTML tags it finds. Do Profanity plugins have access to contact information while they are processing incoming messages? It would be possible to just check what client the contact users and it could automatically apply the relevant cleaning rules. Like remove all tags and HTML-unescape for Adium clients.\r\nI assume Adium escapes the users' input. I can't test now, I don't have access to Apple systems."}}
{"actor":{"display_login":"nd2s"}}