pull/1105/head
Ryan Wang 2020-10-07 16:00:46 +08:00 committed by GitHub
parent ab74d8c28b
commit 5520baf046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -274,6 +274,9 @@ public class HaloUtils {
* @return text before cleaned
*/
public static String cleanHtmlTag(String content) {
return content.replaceAll(RE_HTML_MARK, "");
if (StringUtils.isEmpty(content)) {
return StringUtils.EMPTY;
}
return content.replaceAll(RE_HTML_MARK, StringUtils.EMPTY);
}
}