public class HtmlUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.util.regex.Pattern |
HTML_PATTERN |
static org.jsoup.safety.Safelist |
SAFELIST |
static java.util.regex.Pattern |
SRC_HREF_PATTERN |
限定符 | 构造器和说明 |
---|---|
private |
HtmlUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
cleanUnsafeHtml(java.lang.String string,
java.lang.String baseUri) |
private static org.jsoup.nodes.Element |
clone(org.jsoup.nodes.Element element,
java.util.concurrent.atomic.AtomicInteger counter) |
private static void |
clone(org.jsoup.nodes.Element cloneParent,
java.util.List<org.jsoup.nodes.Node> nodeList,
java.util.concurrent.atomic.AtomicInteger counter) |
static void |
getFileList(java.lang.String html,
java.util.Set<java.lang.String> set) |
static java.lang.String |
keep(java.lang.String string,
int length) |
static java.lang.String |
removeHtmlTag(java.lang.String string) |
public static final java.util.regex.Pattern HTML_PATTERN
public static final java.util.regex.Pattern SRC_HREF_PATTERN
public static final org.jsoup.safety.Safelist SAFELIST
public static java.lang.String removeHtmlTag(java.lang.String string)
string
- public static void getFileList(java.lang.String html, java.util.Set<java.lang.String> set)
public static java.lang.String keep(java.lang.String string, int length)
public static java.lang.String cleanUnsafeHtml(java.lang.String string, java.lang.String baseUri)
private static org.jsoup.nodes.Element clone(org.jsoup.nodes.Element element, java.util.concurrent.atomic.AtomicInteger counter)
private static void clone(org.jsoup.nodes.Element cloneParent, java.util.List<org.jsoup.nodes.Node> nodeList, java.util.concurrent.atomic.AtomicInteger counter)