{"action":"created","issue":{"url":"https://api.github.com/repos/codsen/string-strip-html/issues/2","repository_url":"https://api.github.com/repos/codsen/string-strip-html","labels_url":"https://api.github.com/repos/codsen/string-strip-html/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/codsen/string-strip-html/issues/2/comments","events_url":"https://api.github.com/repos/codsen/string-strip-html/issues/2/events","html_url":"https://github.com/codsen/string-strip-html/issues/2","id":322102204,"number":2,"title":"read property 'trim' of undefined","user":{"login":"nperriwp","id":9938647,"avatar_url":"https://avatars0.githubusercontent.com/u/9938647?v=4","gravatar_id":"","url":"https://api.github.com/users/nperriwp","html_url":"https://github.com/nperriwp","followers_url":"https://api.github.com/users/nperriwp/followers","following_url":"https://api.github.com/users/nperriwp/following{/other_user}","gists_url":"https://api.github.com/users/nperriwp/gists{/gist_id}","starred_url":"https://api.github.com/users/nperriwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nperriwp/subscriptions","organizations_url":"https://api.github.com/users/nperriwp/orgs","repos_url":"https://api.github.com/users/nperriwp/repos","events_url":"https://api.github.com/users/nperriwp/events{/privacy}","received_events_url":"https://api.github.com/users/nperriwp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-05-10T22:05:56Z","updated_at":"2018-05-10T23:30:05Z","closed_at":null,"author_association":"NONE","body":"The line stripHtml(\"<script>alert(\\\"123\\\")</script\") causes the library to throw the following exception:\r\n\r\nstring-strip-html.umd.js:1 Uncaught TypeError: Cannot read property 'trim' of undefined\r\n    at Object.o [as cb] (string-strip-html.umd.js:1)\r\n    at string-strip-html.umd.js:1\r\n    at he (string-strip-html.umd.js:1)\r\n    at string-strip-html.umd.js:1"},"comment":{"url":"https://api.github.com/repos/codsen/string-strip-html/issues/comments/388216095","html_url":"https://github.com/codsen/string-strip-html/issues/2#issuecomment-388216095","issue_url":"https://api.github.com/repos/codsen/string-strip-html/issues/2","id":388216095,"user":{"login":"nperriwp","id":9938647,"avatar_url":"https://avatars0.githubusercontent.com/u/9938647?v=4","gravatar_id":"","url":"https://api.github.com/users/nperriwp","html_url":"https://github.com/nperriwp","followers_url":"https://api.github.com/users/nperriwp/followers","following_url":"https://api.github.com/users/nperriwp/following{/other_user}","gists_url":"https://api.github.com/users/nperriwp/gists{/gist_id}","starred_url":"https://api.github.com/users/nperriwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nperriwp/subscriptions","organizations_url":"https://api.github.com/users/nperriwp/orgs","repos_url":"https://api.github.com/users/nperriwp/repos","events_url":"https://api.github.com/users/nperriwp/events{/privacy}","received_events_url":"https://api.github.com/users/nperriwp/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T23:30:05Z","updated_at":"2018-05-10T23:30:05Z","author_association":"NONE","body":"Unfortunately, I'm getting the same error. UMD is being used.\r\n\r\nstring-strip-html.umd.js:1 Uncaught TypeError: Cannot read property 'trim' of undefined\r\nat Object.o [as cb] (string-strip-html.umd.js:1)\r\nat string-strip-html.umd.js:1\r\nat he (string-strip-html.umd.js:1)\r\nat string-strip-html.umd.js:1"}}
{"actor":{"display_login":"nperriwp"}}