com.gitee.cliveyuan.tools.http.HtmlTools Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-tools Show documentation
Show all versions of java-tools Show documentation
Some commonly used methods in java
package com.gitee.cliveyuan.tools.http;
import org.springframework.web.util.HtmlUtils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* html工具类
*
* @author clive
* Created on 2018/07/27
* @since 1.0
*/
public class HtmlTools extends HtmlUtils {
public static final String DEFAULT_ENCODING = "UTF-8";
private HtmlTools() {
}
public static String htmlEscape(String input) {
return htmlEscape(input, DEFAULT_ENCODING);
}
public static String delHTMLTag(String htmlStr) {
String regEx_script = "