Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ public class Html extends HtmlNode {

private Logger logger = LoggerFactory.getLogger(getClass());

/**
* Disable jsoup html entity escape. It can be set just before any Html instance is created.
/**
* Disable jsoup html entity escape. It can be set just before any Html instance is created.
*
* @deprecated
*/
public static boolean DISABLE_HTML_ENTITY_ESCAPE = false;
*/
public static boolean DISABLE_HTML_ENTITY_ESCAPE = false;

/**
* Store parsed document for better performance when only one text exist.
Expand Down Expand Up @@ -83,6 +84,10 @@ public List<String> selectDocumentForList(Selector selector) {
}
}

public String text() {
return document.text();
}

public static Html create(String text) {
return new Html(text);
}
Expand Down