Java Code Examples for org.jsoup.parser.Parser#parse()
The following examples show how to use
org.jsoup.parser.Parser#parse() .
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: DomMapper.java From mica with GNU Lesser General Public License v3.0 | 2 votes |
/** * 将 html 字符串读取为 jsoup Document * * @param html String * @return Document */ public static Document readDocument(String html) { return Parser.parse(html, ""); }
Example 2
Source File: Jsoup.java From astor with GNU General Public License v2.0 | votes |
/** Parse HTML into a Document. The parser will make a sensible, balanced document tree out of any HTML. @param html HTML to parse @param baseUri The URL where the HTML was retrieved from. Used to resolve relative URLs to absolute URLs, that occur before the HTML declares a {@code <base href>} tag. @return sane HTML */ public static Document parse(String html, String baseUri) { return Parser.parse(html, baseUri); }
Example 3
Source File: Jsoup.java From astor with GNU General Public License v2.0 | votes |
/** Parse HTML into a Document. As no base URI is specified, absolute URL detection relies on the HTML including a {@code <base href>} tag. @param html HTML to parse @return sane HTML @see #parse(String, String) */ public static Document parse(String html) { return Parser.parse(html, ""); }
Example 4
Source File: Jsoup.java From astor with GNU General Public License v2.0 | votes |
/** Parse HTML into a Document. The parser will make a sensible, balanced document tree out of any HTML. @param html HTML to parse @param baseUri The URL where the HTML was retrieved from. Used to resolve relative URLs to absolute URLs, that occur before the HTML declares a {@code <base href>} tag. @return sane HTML */ public static Document parse(String html, String baseUri) { return Parser.parse(html, baseUri); }
Example 5
Source File: Jsoup.java From astor with GNU General Public License v2.0 | votes |
/** Parse HTML into a Document. As no base URI is specified, absolute URL detection relies on the HTML including a {@code <base href>} tag. @param html HTML to parse @return sane HTML @see #parse(String, String) */ public static Document parse(String html) { return Parser.parse(html, ""); }
Example 6
Source File: Jsoup.java From astor with GNU General Public License v2.0 | votes |
/** Parse HTML into a Document. The parser will make a sensible, balanced document tree out of any HTML. @param html HTML to parse @param baseUri The URL where the HTML was retrieved from. Used to resolve relative URLs to absolute URLs, that occur before the HTML declares a {@code <base href>} tag. @return sane HTML */ public static Document parse(String html, String baseUri) { return Parser.parse(html, baseUri); }
Example 7
Source File: Jsoup.java From astor with GNU General Public License v2.0 | votes |
/** Parse HTML into a Document. As no base URI is specified, absolute URL detection relies on the HTML including a {@code <base href>} tag. @param html HTML to parse @return sane HTML @see #parse(String, String) */ public static Document parse(String html) { return Parser.parse(html, ""); }
Example 8
Source File: Jsoup.java From jsoup-learning with MIT License | votes |
/** Parse HTML into a Document. The parser will make a sensible, balanced document tree out of any HTML. @param html HTML to parse @param baseUri The URL where the HTML was retrieved from. Used to resolve relative URLs to absolute URLs, that occur before the HTML declares a {@code <base href>} tag. @return sane HTML */ public static Document parse(String html, String baseUri) { return Parser.parse(html, baseUri); }
Example 9
Source File: Jsoup.java From jsoup-learning with MIT License | votes |
/** Parse HTML into a Document. As no base URI is specified, absolute URL detection relies on the HTML including a {@code <base href>} tag. @param html HTML to parse @return sane HTML @see #parse(String, String) */ public static Document parse(String html) { return Parser.parse(html, ""); }