{"action":"created","issue":{"url":"https://api.github.com/repos/YorickPeterse/oga/issues/113","labels_url":"https://api.github.com/repos/YorickPeterse/oga/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/YorickPeterse/oga/issues/113/comments","events_url":"https://api.github.com/repos/YorickPeterse/oga/issues/113/events","html_url":"https://github.com/YorickPeterse/oga/issues/113","id":85938652,"number":113,"title":"to_xml doesn't handle quotes inside attribute values well","user":{"login":"abotalov","id":1497867,"avatar_url":"https://avatars.githubusercontent.com/u/1497867?v=3","gravatar_id":"","url":"https://api.github.com/users/abotalov","html_url":"https://github.com/abotalov","followers_url":"https://api.github.com/users/abotalov/followers","following_url":"https://api.github.com/users/abotalov/following{/other_user}","gists_url":"https://api.github.com/users/abotalov/gists{/gist_id}","starred_url":"https://api.github.com/users/abotalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abotalov/subscriptions","organizations_url":"https://api.github.com/users/abotalov/orgs","repos_url":"https://api.github.com/users/abotalov/repos","events_url":"https://api.github.com/users/abotalov/events{/privacy}","received_events_url":"https://api.github.com/users/abotalov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/YorickPeterse/oga/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/YorickPeterse/oga/labels/Lexer","name":"Lexer","color":"bfe5bf"},{"url":"https://api.github.com/repos/YorickPeterse/oga/labels/XML","name":"XML","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/YorickPeterse/oga/milestones/6","html_url":"https://github.com/YorickPeterse/oga/milestones/1.1.0","labels_url":"https://api.github.com/repos/YorickPeterse/oga/milestones/6/labels","id":1105548,"number":6,"title":"1.1.0","description":"","creator":{"login":"YorickPeterse","id":86065,"avatar_url":"https://avatars.githubusercontent.com/u/86065?v=3","gravatar_id":"","url":"https://api.github.com/users/YorickPeterse","html_url":"https://github.com/YorickPeterse","followers_url":"https://api.github.com/users/YorickPeterse/followers","following_url":"https://api.github.com/users/YorickPeterse/following{/other_user}","gists_url":"https://api.github.com/users/YorickPeterse/gists{/gist_id}","starred_url":"https://api.github.com/users/YorickPeterse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YorickPeterse/subscriptions","organizations_url":"https://api.github.com/users/YorickPeterse/orgs","repos_url":"https://api.github.com/users/YorickPeterse/repos","events_url":"https://api.github.com/users/YorickPeterse/events{/privacy}","received_events_url":"https://api.github.com/users/YorickPeterse/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2015-05-11T19:17:42Z","updated_at":"2015-06-08T04:47:54Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-07T20:27:51Z","updated_at":"2015-06-08T04:52:37Z","closed_at":null,"body":"Same bug as https://github.com/jhy/jsoup/issues/528\r\n\r\n```ruby\r\nputs Oga.parse_html('<img a=\"&quot;\">').to_xml\r\n<img a=\"\"\" />\r\n```"},"comment":{"url":"https://api.github.com/repos/YorickPeterse/oga/issues/comments/109861525","html_url":"https://github.com/YorickPeterse/oga/issues/113#issuecomment-109861525","issue_url":"https://api.github.com/repos/YorickPeterse/oga/issues/113","id":109861525,"user":{"login":"YorickPeterse","id":86065,"avatar_url":"https://avatars.githubusercontent.com/u/86065?v=3","gravatar_id":"","url":"https://api.github.com/users/YorickPeterse","html_url":"https://github.com/YorickPeterse","followers_url":"https://api.github.com/users/YorickPeterse/followers","following_url":"https://api.github.com/users/YorickPeterse/following{/other_user}","gists_url":"https://api.github.com/users/YorickPeterse/gists{/gist_id}","starred_url":"https://api.github.com/users/YorickPeterse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YorickPeterse/subscriptions","organizations_url":"https://api.github.com/users/YorickPeterse/orgs","repos_url":"https://api.github.com/users/YorickPeterse/repos","events_url":"https://api.github.com/users/YorickPeterse/events{/privacy}","received_events_url":"https://api.github.com/users/YorickPeterse/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T04:52:37Z","updated_at":"2015-06-08T04:52:37Z","body":"Thinking of it using a backslash probably won't work, at least Nokogiri doesn't really seem to like it. Nokogiri seems to URL encode the values, e.g. `\"` ends up as `%22`. Not sure if this the official way of doing it though."}}