I did some research and it seems that is standard Jsoup make this change. I wonder if there is a way to configure this or is there some other Parser I can be converted to a
You must use xmlParser instead of htmlParser and the tags will remain unchanged. One line does the trick:
String html = "some text"; Document doc = Jsoup.parse(html, "", Parser.xmlParser());