{"action":"created","issue":{"url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/10","labels_url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/10/comments","events_url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/10/events","html_url":"https://github.com/lorenooliveira/ng-text-truncate/pull/10","id":67542620,"number":10,"title":"Fix: JS code passed as plain text to not execute","user":{"login":"cassilup","id":598642,"avatar_url":"https://avatars.githubusercontent.com/u/598642?v=3","gravatar_id":"","url":"https://api.github.com/users/cassilup","html_url":"https://github.com/cassilup","followers_url":"https://api.github.com/users/cassilup/followers","following_url":"https://api.github.com/users/cassilup/following{/other_user}","gists_url":"https://api.github.com/users/cassilup/gists{/gist_id}","starred_url":"https://api.github.com/users/cassilup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassilup/subscriptions","organizations_url":"https://api.github.com/users/cassilup/orgs","repos_url":"https://api.github.com/users/cassilup/repos","events_url":"https://api.github.com/users/cassilup/events{/privacy}","received_events_url":"https://api.github.com/users/cassilup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-10T08:39:30Z","updated_at":"2015-04-25T00:48:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/pulls/10","html_url":"https://github.com/lorenooliveira/ng-text-truncate/pull/10","diff_url":"https://github.com/lorenooliveira/ng-text-truncate/pull/10.diff","patch_url":"https://github.com/lorenooliveira/ng-text-truncate/pull/10.patch"},"body":"Since appending raw text to an element causes the browser to pass that text through the JS Parser, we're globally replacing \"<\" with \"&lt;\" in order to prevent execution of text like \"<script>window.alert('foo');</script>\"."},"comment":{"url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/comments/96111877","html_url":"https://github.com/lorenooliveira/ng-text-truncate/pull/10#issuecomment-96111877","issue_url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/10","id":96111877,"user":{"login":"fabiowitt","id":4381945,"avatar_url":"https://avatars.githubusercontent.com/u/4381945?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiowitt","html_url":"https://github.com/fabiowitt","followers_url":"https://api.github.com/users/fabiowitt/followers","following_url":"https://api.github.com/users/fabiowitt/following{/other_user}","gists_url":"https://api.github.com/users/fabiowitt/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiowitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiowitt/subscriptions","organizations_url":"https://api.github.com/users/fabiowitt/orgs","repos_url":"https://api.github.com/users/fabiowitt/repos","events_url":"https://api.github.com/users/fabiowitt/events{/privacy}","received_events_url":"https://api.github.com/users/fabiowitt/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T00:48:56Z","updated_at":"2015-04-25T00:48:56Z","body":"+1"}}