方法如下:
1 2 3 4 5 6 7 8 |
public static String getFormatPara(String str) { String formatStr = ""; if (str != null) { formatStr = str.replace("00:00:00.0", "").replace(":00.0", "").replace("'", "").replace("\"", "").replace("<", "").replace(">", "").replace("script", "").replace(" or ", "").replace( " and ", "").replace("-", "").replace("iframe", "").replace(" href ", "").replaceAll(".*([';]+|(--)+).*", " ").trim(); } return formatStr; } |
时间:2013-02-05 20:38:42
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021