Java HTML Parse Jsoup prettyPrint(String html)

Here you can find the source of prettyPrint(String html)

Description

pretty Print

License

Open Source License

Declaration

public static String prettyPrint(String html) 

Method Source Code

//package com.java2s;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

public class Main {
    public static String prettyPrint(String html) {
        Document doc = Jsoup.parse(html);
        doc.outputSettings().prettyPrint(true);
        return doc.toString();
    }/*from w ww .java  2s.  c o m*/
}

Related

  1. parseTable2ArrayList(Document doc, String selectorRow, String selectorCol)
  2. parseTemplate1_1(Element element)
  3. parseTemplate1_2(Element element)
  4. parseUTF8HTMLDocument(String html)
  5. parseWithAdultCheck(URL url, int timeout)
  6. processHtml(String html)
  7. removeAllHtmlTags(String unsafe)
  8. removeHTMLTags(final String text)
  9. removeTag(String html)