how to remove the warnings in Jtidy in java

前端 未结 5 1466
北荒
北荒 2021-01-13 20:18

I am using Jtidy parser in java.

URL url = new URL(\"www.yahoo.com\"); 
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
InputStream in = c         


        
5条回答
  •  孤城傲影
    2021-01-13 20:58

    Looking at the documentation I found another method that seems a bit nicer to me in this particular case: setShowWarnings(boolean). This method will hide the warnings, but errors will still be thrown.

    For more info look here: http://www.docjar.com/docs/api/org/w3c/tidy/Tidy.html#setShowWarnings(boolean)

提交回复
热议问题