{"action":"created","issue":{"url":"https://api.github.com/repos/jhy/jsoup/issues/774","repository_url":"https://api.github.com/repos/jhy/jsoup","labels_url":"https://api.github.com/repos/jhy/jsoup/issues/774/labels{/name}","comments_url":"https://api.github.com/repos/jhy/jsoup/issues/774/comments","events_url":"https://api.github.com/repos/jhy/jsoup/issues/774/events","html_url":"https://github.com/jhy/jsoup/issues/774","id":184273606,"number":774,"title":"Parse HTML and Javascript content","user":{"login":"jcagarcia","id":1403553,"avatar_url":"https://avatars.githubusercontent.com/u/1403553?v=3","gravatar_id":"","url":"https://api.github.com/users/jcagarcia","html_url":"https://github.com/jcagarcia","followers_url":"https://api.github.com/users/jcagarcia/followers","following_url":"https://api.github.com/users/jcagarcia/following{/other_user}","gists_url":"https://api.github.com/users/jcagarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/jcagarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcagarcia/subscriptions","organizations_url":"https://api.github.com/users/jcagarcia/orgs","repos_url":"https://api.github.com/users/jcagarcia/repos","events_url":"https://api.github.com/users/jcagarcia/events{/privacy}","received_events_url":"https://api.github.com/users/jcagarcia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-20T16:10:08Z","updated_at":"2016-10-21T01:56:01Z","closed_at":null,"body":"Hi!\r\n\r\nI'm parsing an HTML string that contains html tags and javascript tags using the following\r\n\r\n````\r\npublic Document parse(String content) {\r\n    return Jsoup.parse(content, \"\", Parser.xmlParser());\r\n  }\r\n````\r\n\r\nThe problem is that javascript elements have been included only in one line.\r\n\r\nAlso, I've try with \r\n\r\n````\r\npublic Document parse(String content) {\r\n    return Jsoup.parse(content, \"\", Parser.htmlParser());\r\n  }\r\n````\r\n\r\nand that works fine for Javascript... but HTML elements have been included without end line. Ex:\r\n\r\n````\r\n    <link rel=\"shortcut icon\" href=\"../../static/public/img/favicon.ico\" data-th-remove=\"all\"></link>\r\n````\r\n\r\nhas been parsed like\r\n\r\n\r\n````\r\n    <link rel=\"shortcut icon\" href=\"../../static/public/img/favicon.ico\" data-th-remove=\"all\">\r\n````\r\n\r\nThat doesn't work when I run my application.\r\n\r\nHow can I fix that?\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/jhy/jsoup/issues/comments/255274733","html_url":"https://github.com/jhy/jsoup/issues/774#issuecomment-255274733","issue_url":"https://api.github.com/repos/jhy/jsoup/issues/774","id":255274733,"user":{"login":"jhy","id":76934,"avatar_url":"https://avatars.githubusercontent.com/u/76934?v=3","gravatar_id":"","url":"https://api.github.com/users/jhy","html_url":"https://github.com/jhy","followers_url":"https://api.github.com/users/jhy/followers","following_url":"https://api.github.com/users/jhy/following{/other_user}","gists_url":"https://api.github.com/users/jhy/gists{/gist_id}","starred_url":"https://api.github.com/users/jhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhy/subscriptions","organizations_url":"https://api.github.com/users/jhy/orgs","repos_url":"https://api.github.com/users/jhy/repos","events_url":"https://api.github.com/users/jhy/events{/privacy}","received_events_url":"https://api.github.com/users/jhy/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T01:56:01Z","updated_at":"2016-10-21T01:56:01Z","body":"I'm not sure I'm following. Link tags in HTML5 don't need closing tags as they are empty.\r\n\r\nWhat does \"javascript elements have been included only in one line\" mean?\r\n\r\nMaybe you can give your input and desired output and we can find the path."}}
{"actor":{"display_login":"jhy"}}