{"action":"created","issue":{"url":"https://api.github.com/repos/punkave/sanitize-html/issues/79","labels_url":"https://api.github.com/repos/punkave/sanitize-html/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/punkave/sanitize-html/issues/79/comments","events_url":"https://api.github.com/repos/punkave/sanitize-html/issues/79/events","html_url":"https://github.com/punkave/sanitize-html/issues/79","id":116100720,"number":79,"title":"Unclosed `<a>` tag breaks tag balance","user":{"login":"fabiosantoscode","id":1611595,"avatar_url":"https://avatars.githubusercontent.com/u/1611595?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiosantoscode","html_url":"https://github.com/fabiosantoscode","followers_url":"https://api.github.com/users/fabiosantoscode/followers","following_url":"https://api.github.com/users/fabiosantoscode/following{/other_user}","gists_url":"https://api.github.com/users/fabiosantoscode/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiosantoscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiosantoscode/subscriptions","organizations_url":"https://api.github.com/users/fabiosantoscode/orgs","repos_url":"https://api.github.com/users/fabiosantoscode/repos","events_url":"https://api.github.com/users/fabiosantoscode/events{/privacy}","received_events_url":"https://api.github.com/users/fabiosantoscode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-10T12:51:02Z","updated_at":"2015-11-10T13:39:49Z","closed_at":null,"body":"This is a contrived example of some wild HTML that broke sanitize-html:\r\n\r\n```\r\n> sanitizeHTML('<p>Hey! Here is a broken link tag: <a href=\"http://www.example.com/lel...')\r\n'<p>Hey! Here is a broken link tag: </a>'\r\n```\r\n\r\nI thought this was because it was in the middle of a string, but it actually triggers if the string ends in the middle of any part of the attribute. But not if the tag doesn't have attributes yet!\r\n\r\n```\r\n> sanitizeHTML('<p>lel <a')\r\n'<p>lel </p>'  // good\r\n> sanitizeHTML('<p>lel <a href')\r\n'<p>lel </a>'  // bad!\r\n> sanitizeHTML('<p>lel <a href=\"\"')\r\n'<p>lel </a>'  // bad!\r\n```"},"comment":{"url":"https://api.github.com/repos/punkave/sanitize-html/issues/comments/155421268","html_url":"https://github.com/punkave/sanitize-html/issues/79#issuecomment-155421268","issue_url":"https://api.github.com/repos/punkave/sanitize-html/issues/79","id":155421268,"user":{"login":"fabiosantoscode","id":1611595,"avatar_url":"https://avatars.githubusercontent.com/u/1611595?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiosantoscode","html_url":"https://github.com/fabiosantoscode","followers_url":"https://api.github.com/users/fabiosantoscode/followers","following_url":"https://api.github.com/users/fabiosantoscode/following{/other_user}","gists_url":"https://api.github.com/users/fabiosantoscode/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiosantoscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiosantoscode/subscriptions","organizations_url":"https://api.github.com/users/fabiosantoscode/orgs","repos_url":"https://api.github.com/users/fabiosantoscode/repos","events_url":"https://api.github.com/users/fabiosantoscode/events{/privacy}","received_events_url":"https://api.github.com/users/fabiosantoscode/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T13:39:49Z","updated_at":"2015-11-10T13:39:49Z","body":"Okay, thank you :)"}}