Java Code Examples for org.jsoup.parser.Parser#parseBodyFragment()

The following examples show how to use org.jsoup.parser.Parser#parseBodyFragment() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Jsoup.java    From astor with GNU General Public License v2.0 votes vote down vote up
/**
 Parse a fragment of HTML, with the assumption that it forms the {@code body} of the HTML.

 @param bodyHtml body HTML fragment
 @param baseUri  URL to resolve relative URLs against.
 @return sane HTML document

 @see Document#body()
 */
public static Document parseBodyFragment(String bodyHtml, String baseUri) {
    return Parser.parseBodyFragment(bodyHtml, baseUri);
}
 
Example 2
Source File: Jsoup.java    From astor with GNU General Public License v2.0 votes vote down vote up
/**
 Parse a fragment of HTML, with the assumption that it forms the {@code body} of the HTML.

 @param bodyHtml body HTML fragment
 @return sane HTML document

 @see Document#body()
 */
public static Document parseBodyFragment(String bodyHtml) {
    return Parser.parseBodyFragment(bodyHtml, "");
}
 
Example 3
Source File: Jsoup.java    From astor with GNU General Public License v2.0 votes vote down vote up
/**
 Parse a fragment of HTML, with the assumption that it forms the {@code body} of the HTML.

 @param bodyHtml body HTML fragment
 @param baseUri  URL to resolve relative URLs against.
 @return sane HTML document

 @see Document#body()
 */
public static Document parseBodyFragment(String bodyHtml, String baseUri) {
    return Parser.parseBodyFragment(bodyHtml, baseUri);
}
 
Example 4
Source File: Jsoup.java    From astor with GNU General Public License v2.0 votes vote down vote up
/**
 Parse a fragment of HTML, with the assumption that it forms the {@code body} of the HTML.

 @param bodyHtml body HTML fragment
 @return sane HTML document

 @see Document#body()
 */
public static Document parseBodyFragment(String bodyHtml) {
    return Parser.parseBodyFragment(bodyHtml, "");
}
 
Example 5
Source File: Jsoup.java    From astor with GNU General Public License v2.0 votes vote down vote up
/**
 Parse a fragment of HTML, with the assumption that it forms the {@code body} of the HTML.

 @param bodyHtml body HTML fragment
 @param baseUri  URL to resolve relative URLs against.
 @return sane HTML document

 @see Document#body()
 */
public static Document parseBodyFragment(String bodyHtml, String baseUri) {
    return Parser.parseBodyFragment(bodyHtml, baseUri);
}
 
Example 6
Source File: Jsoup.java    From astor with GNU General Public License v2.0 votes vote down vote up
/**
 Parse a fragment of HTML, with the assumption that it forms the {@code body} of the HTML.

 @param bodyHtml body HTML fragment
 @return sane HTML document

 @see Document#body()
 */
public static Document parseBodyFragment(String bodyHtml) {
    return Parser.parseBodyFragment(bodyHtml, "");
}
 
Example 7
Source File: Jsoup.java    From jsoup-learning with MIT License votes vote down vote up
/**
 Parse a fragment of HTML, with the assumption that it forms the {@code body} of the HTML.

 @param bodyHtml body HTML fragment
 @param baseUri  URL to resolve relative URLs against.
 @return sane HTML document

 @see Document#body()
 */
public static Document parseBodyFragment(String bodyHtml, String baseUri) {
    return Parser.parseBodyFragment(bodyHtml, baseUri);
}
 
Example 8
Source File: Jsoup.java    From jsoup-learning with MIT License votes vote down vote up
/**
 Parse a fragment of HTML, with the assumption that it forms the {@code body} of the HTML.

 @param bodyHtml body HTML fragment
 @return sane HTML document

 @see Document#body()
 */
public static Document parseBodyFragment(String bodyHtml) {
    return Parser.parseBodyFragment(bodyHtml, "");
}