方法如下:
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;
}