{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/625","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/625/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/625/events","html_url":"https://github.com/Automattic/wp-calypso/pull/625","id":118606010,"number":625,"title":"Me: Sidebar: Decode entities for User's display name on /me profile sidebar","user":{"login":"oskosk","id":746152,"avatar_url":"https://avatars.githubusercontent.com/u/746152?v=3","gravatar_id":"","url":"https://api.github.com/users/oskosk","html_url":"https://github.com/oskosk","followers_url":"https://api.github.com/users/oskosk/followers","following_url":"https://api.github.com/users/oskosk/following{/other_user}","gists_url":"https://api.github.com/users/oskosk/gists{/gist_id}","starred_url":"https://api.github.com/users/oskosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oskosk/subscriptions","organizations_url":"https://api.github.com/users/oskosk/orgs","repos_url":"https://api.github.com/users/oskosk/repos","events_url":"https://api.github.com/users/oskosk/events{/privacy}","received_events_url":"https://api.github.com/users/oskosk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Me","name":"Me","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Sidebar","name":"Sidebar","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-24T13:15:00Z","updated_at":"2015-11-24T17:50:55Z","closed_at":"2015-11-24T17:46:38Z","pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/625","html_url":"https://github.com/Automattic/wp-calypso/pull/625","diff_url":"https://github.com/Automattic/wp-calypso/pull/625.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/625.patch"},"body":"Display names that used a special char, for example, an ampersand were shown like &amp; on the h2 that shows the display name under the gravatar.\r\n\r\nIt used to look like this\r\n![Entities not decoded on /me display name](https://cldup.com/1KacnQadRa-3000x3000.png)\r\n\r\nNow it shows just the ampersand.\r\n\r\ncc @ebinnion \r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/159354498","html_url":"https://github.com/Automattic/wp-calypso/pull/625#issuecomment-159354498","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/625","id":159354498,"user":{"login":"ebinnion","id":1126811,"avatar_url":"https://avatars.githubusercontent.com/u/1126811?v=3","gravatar_id":"","url":"https://api.github.com/users/ebinnion","html_url":"https://github.com/ebinnion","followers_url":"https://api.github.com/users/ebinnion/followers","following_url":"https://api.github.com/users/ebinnion/following{/other_user}","gists_url":"https://api.github.com/users/ebinnion/gists{/gist_id}","starred_url":"https://api.github.com/users/ebinnion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebinnion/subscriptions","organizations_url":"https://api.github.com/users/ebinnion/orgs","repos_url":"https://api.github.com/users/ebinnion/repos","events_url":"https://api.github.com/users/ebinnion/events{/privacy}","received_events_url":"https://api.github.com/users/ebinnion/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T17:50:55Z","updated_at":"2015-11-24T17:50:55Z","body":"Going to go ahead and merge as this solves the issue with escaping entities in the sidebar.\r\n\r\n@oskosk and I discussed different options for also escaping values that are displayed in the inputs throughout `/me`.\r\n\r\nI suggested that we could potentially decode the HTML entities in the [valueLink method within form-base](https://github.com/Automattic/wp-calypso/blob/master/client/me/form-base/index.js#L55). The only issue I see with this is that we should preferably escape as we are passing the value in to the `FormInput`, `FormTextarea`, etc.\r\n\r\n@oskosk mentioned that he will create another PR to address the display of HTML entities within form fields."}}