Parser JSoup change the tags to lower case letter

前端 未结 5 1037
灰色年华
灰色年华 2020-12-20 15:39

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

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-20 16:00

    Here is a code sample (version >= 1.11.x):

    Parser parser = Parser.htmlParser();
    parser.settings(new ParseSettings(true, true));
    Document doc = parser.parseInput(html, baseUrl);
    

提交回复
热议问题