{"action":"created","issue":{"url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/issues/188","labels_url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/issues/188/comments","events_url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/issues/188/events","html_url":"https://github.com/OpenBazaar/OpenBazaar-Server/issues/188","id":130586107,"number":188,"title":"HTML escaping causes malformed profile response","user":{"login":"justicz","id":17011613,"avatar_url":"https://avatars.githubusercontent.com/u/17011613?v=3","gravatar_id":"","url":"https://api.github.com/users/justicz","html_url":"https://github.com/justicz","followers_url":"https://api.github.com/users/justicz/followers","following_url":"https://api.github.com/users/justicz/following{/other_user}","gists_url":"https://api.github.com/users/justicz/gists{/gist_id}","starred_url":"https://api.github.com/users/justicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justicz/subscriptions","organizations_url":"https://api.github.com/users/justicz/orgs","repos_url":"https://api.github.com/users/justicz/repos","events_url":"https://api.github.com/users/justicz/events{/privacy}","received_events_url":"https://api.github.com/users/justicz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/labels/feature-complete%20requirement","name":"feature-complete requirement","color":"eb6420"},{"url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/labels/Showstopper","name":"Showstopper","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"cpacia","id":4504708,"avatar_url":"https://avatars.githubusercontent.com/u/4504708?v=3","gravatar_id":"","url":"https://api.github.com/users/cpacia","html_url":"https://github.com/cpacia","followers_url":"https://api.github.com/users/cpacia/followers","following_url":"https://api.github.com/users/cpacia/following{/other_user}","gists_url":"https://api.github.com/users/cpacia/gists{/gist_id}","starred_url":"https://api.github.com/users/cpacia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpacia/subscriptions","organizations_url":"https://api.github.com/users/cpacia/orgs","repos_url":"https://api.github.com/users/cpacia/repos","events_url":"https://api.github.com/users/cpacia/events{/privacy}","received_events_url":"https://api.github.com/users/cpacia/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/milestones/1","html_url":"https://github.com/OpenBazaar/OpenBazaar-Server/milestones/v1.0","labels_url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/milestones/1/labels","id":1261451,"number":1,"title":"v1.0","description":"Things that need to make it in for the first release.","creator":{"login":"hoffmabc","id":45482,"avatar_url":"https://avatars.githubusercontent.com/u/45482?v=3","gravatar_id":"","url":"https://api.github.com/users/hoffmabc","html_url":"https://github.com/hoffmabc","followers_url":"https://api.github.com/users/hoffmabc/followers","following_url":"https://api.github.com/users/hoffmabc/following{/other_user}","gists_url":"https://api.github.com/users/hoffmabc/gists{/gist_id}","starred_url":"https://api.github.com/users/hoffmabc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoffmabc/subscriptions","organizations_url":"https://api.github.com/users/hoffmabc/orgs","repos_url":"https://api.github.com/users/hoffmabc/repos","events_url":"https://api.github.com/users/hoffmabc/events{/privacy}","received_events_url":"https://api.github.com/users/hoffmabc/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":7,"state":"open","created_at":"2015-08-18T21:19:39Z","updated_at":"2016-02-02T14:31:31Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-02-02T06:10:48Z","updated_at":"2016-02-02T14:54:39Z","closed_at":null,"body":"If you set the username on a social account to a string containing special characters, something goes very wrong ([probably around here](https://github.com/OpenBazaar/OpenBazaar-Server/blob/2cc1a372a72da680ce50766b6da09059d957dab5/api/restapi.py#L141)) and causes the profile endpoint to return invalid json:\r\n\r\n```\"instagram\": {\r\n                \"username\": \"\\\"&gt;&lt;test\", \"proof_url\":=\"\" \"\"=\"\" }=\"\" },=\"\" \"moderation_fee\":=\"\" 10.0,=\"\" \"moderator\":=\"\" false,=\"\" \"nsfw\":=\"\" false,=\"\" \"handle\":=\"\" \"\",=\"\" \"guid\":=\"\" \"7c0c581c5224f22f41d0218998a12e98f1ee361a\",=\"\" \"background_color\":=\"\" 407379,=\"\" \"secondary_color\":=\"\" 3243448,=\"\" \"location\":=\"\" \"na\",=\"\" \"short_description\":=\"\" \"test\\\"=\"\"&gt;&lt;\"```"},"comment":{"url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/issues/comments/178614372","html_url":"https://github.com/OpenBazaar/OpenBazaar-Server/issues/188#issuecomment-178614372","issue_url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Server/issues/188","id":178614372,"user":{"login":"jjeffryes","id":1584275,"avatar_url":"https://avatars.githubusercontent.com/u/1584275?v=3","gravatar_id":"","url":"https://api.github.com/users/jjeffryes","html_url":"https://github.com/jjeffryes","followers_url":"https://api.github.com/users/jjeffryes/followers","following_url":"https://api.github.com/users/jjeffryes/following{/other_user}","gists_url":"https://api.github.com/users/jjeffryes/gists{/gist_id}","starred_url":"https://api.github.com/users/jjeffryes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjeffryes/subscriptions","organizations_url":"https://api.github.com/users/jjeffryes/orgs","repos_url":"https://api.github.com/users/jjeffryes/repos","events_url":"https://api.github.com/users/jjeffryes/events{/privacy}","received_events_url":"https://api.github.com/users/jjeffryes/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T14:54:39Z","updated_at":"2016-02-02T14:54:39Z","body":"Agreed on preventing malformed responses. That's Chris's department."}}