{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/10565","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/10565/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/10565/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/10565/events","html_url":"https://github.com/angular/angular.js/issues/10565","id":52774589,"number":10565,"title":"ngSanitize linky filter incorrectly converts query key html entities to entity numbers.","user":{"login":"KurtWagner","id":1269283,"avatar_url":"https://avatars.githubusercontent.com/u/1269283?v=3","gravatar_id":"","url":"https://api.github.com/users/KurtWagner","html_url":"https://github.com/KurtWagner","followers_url":"https://api.github.com/users/KurtWagner/followers","following_url":"https://api.github.com/users/KurtWagner/following{/other_user}","gists_url":"https://api.github.com/users/KurtWagner/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtWagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtWagner/subscriptions","organizations_url":"https://api.github.com/users/KurtWagner/orgs","repos_url":"https://api.github.com/users/KurtWagner/repos","events_url":"https://api.github.com/users/KurtWagner/events{/privacy}","received_events_url":"https://api.github.com/users/KurtWagner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/branch:%201.4.x","name":"branch: 1.4.x","color":"fad8c7"},{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20ngSanitize","name":"component: ngSanitize","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/angular.js/labels/frequency:%20moderate","name":"frequency: moderate","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/angular.js/labels/severity:%20broken%20expected%20use","name":"severity: broken expected use","color":"fbda00"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20bug","name":"type: bug","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/80","html_url":"https://github.com/angular/angular.js/milestones/1.4.x","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/80/labels","id":901585,"number":80,"title":"1.4.x","description":"","creator":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":149,"state":"open","created_at":"2014-12-12T10:36:27Z","updated_at":"2016-03-27T13:09:06Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2014-12-23T21:03:13Z","updated_at":"2016-03-31T18:12:33Z","closed_at":null,"body":"URL query parameters like `&center=` have the `&cent` part converted to `¢`, which results in `¢er=`\r\n\r\nFor example:\r\n\r\n    'http://test.com/?arg=10&quote=10&center=10' | linky\r\n\r\nBecomes\r\n\r\n    <a href=\"http://test.com/?arg=10&#34;e=10&#162;er=10\">http://test.com/?arg=10&amp;quote=10&amp;center=10</a>\r\n\r\ni.e, a link of\r\n\r\n    http://test.com/?arg=10\"e=10¢er=10\r\n\r\nSee [jsfiddle](http://jsfiddle.net/4479b27v/). Similar issue when using `ngBindHtml` ([jsfiddle](http://jsfiddle.net/4479b27v/1/)). So I'm guessing it all comes down to `$sanitize` ([jsfiddle](http://jsfiddle.net/4479b27v/2/))"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/204060884","html_url":"https://github.com/angular/angular.js/issues/10565#issuecomment-204060884","issue_url":"https://api.github.com/repos/angular/angular.js/issues/10565","id":204060884,"user":{"login":"kevinrenskers","id":229384,"avatar_url":"https://avatars.githubusercontent.com/u/229384?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinrenskers","html_url":"https://github.com/kevinrenskers","followers_url":"https://api.github.com/users/kevinrenskers/followers","following_url":"https://api.github.com/users/kevinrenskers/following{/other_user}","gists_url":"https://api.github.com/users/kevinrenskers/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinrenskers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinrenskers/subscriptions","organizations_url":"https://api.github.com/users/kevinrenskers/orgs","repos_url":"https://api.github.com/users/kevinrenskers/repos","events_url":"https://api.github.com/users/kevinrenskers/events{/privacy}","received_events_url":"https://api.github.com/users/kevinrenskers/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T18:12:33Z","updated_at":"2016-03-31T18:12:33Z","body":"My workaround: I stopped using angular-sanitize and the linky filter. Too many problems. I am now using the [linkifyjs](https://github.com/SoapBox/linkifyjs) library with my own linky filter wrapping it."}}