{"action":"created","issue":{"url":"https://api.github.com/repos/jhy/jsoup/issues/372","repository_url":"https://api.github.com/repos/jhy/jsoup","labels_url":"https://api.github.com/repos/jhy/jsoup/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/jhy/jsoup/issues/372/comments","events_url":"https://api.github.com/repos/jhy/jsoup/issues/372/events","html_url":"https://github.com/jhy/jsoup/issues/372","id":22798104,"number":372,"title":"How to allow character '&' without convert to '&amp;'","user":{"login":"rifkiharahap","id":5961409,"avatar_url":"https://avatars.githubusercontent.com/u/5961409?v=3","gravatar_id":"","url":"https://api.github.com/users/rifkiharahap","html_url":"https://github.com/rifkiharahap","followers_url":"https://api.github.com/users/rifkiharahap/followers","following_url":"https://api.github.com/users/rifkiharahap/following{/other_user}","gists_url":"https://api.github.com/users/rifkiharahap/gists{/gist_id}","starred_url":"https://api.github.com/users/rifkiharahap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rifkiharahap/subscriptions","organizations_url":"https://api.github.com/users/rifkiharahap/orgs","repos_url":"https://api.github.com/users/rifkiharahap/repos","events_url":"https://api.github.com/users/rifkiharahap/events{/privacy}","received_events_url":"https://api.github.com/users/rifkiharahap/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2013-11-17T15:27:25Z","updated_at":"2017-02-07T04:32:53Z","closed_at":"2013-11-17T19:59:53Z","body":"i have data from http post data like this :\n\n```\n\"billingCode=820131114000031&custName=Josh & Mark&numAccount=25800&parameterId=2&traceId=820131114000031\"\n```\n\nif i use jsoup :\n\n``` Java\nString postDataori = Jsoup.clean(\"billingCode=820131114000031&custName=Josh & Mark&numAccount=25800&parameterId=2&traceId=820131114000031\", Whitelist.basic());\nSystem.out.println(\"PostData  : \" + postDataori);\n```\n\nand the output like this :\n\n``` Java\nPostData  : billingCode=820131114000031&amp;custName=Josh &amp; Mark&amp;numAccount=25800&amp;parameterId=2&amp;traceId=820131114000031\n```\n\nmy question is how to allow character '&' without convert to `&amp;` ?\n"},"comment":{"url":"https://api.github.com/repos/jhy/jsoup/issues/comments/277899069","html_url":"https://github.com/jhy/jsoup/issues/372#issuecomment-277899069","issue_url":"https://api.github.com/repos/jhy/jsoup/issues/372","id":277899069,"user":{"login":"cketti","id":218061,"avatar_url":"https://avatars.githubusercontent.com/u/218061?v=3","gravatar_id":"","url":"https://api.github.com/users/cketti","html_url":"https://github.com/cketti","followers_url":"https://api.github.com/users/cketti/followers","following_url":"https://api.github.com/users/cketti/following{/other_user}","gists_url":"https://api.github.com/users/cketti/gists{/gist_id}","starred_url":"https://api.github.com/users/cketti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cketti/subscriptions","organizations_url":"https://api.github.com/users/cketti/orgs","repos_url":"https://api.github.com/users/cketti/repos","events_url":"https://api.github.com/users/cketti/events{/privacy}","received_events_url":"https://api.github.com/users/cketti/received_events","type":"User","site_admin":false},"created_at":"2017-02-07T04:32:53Z","updated_at":"2017-02-07T04:32:53Z","body":"The HTML5 spec allows for some leniency when parsing which is why not encoding `&` as `&amp;` leads to the desired behavior most of the time. But always encoding ampersands is certainly not wrong.\r\n\r\nSee https://www.w3.org/TR/html5/syntax.html#attributes-0 and https://www.w3.org/TR/html5/syntax.html#character-reference-in-attribute-value-state"}}
{"actor":{"display_login":"cketti"}}