Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Oct 7, 2020
1 parent ab74d8c commit 5520baf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/run/halo/app/utils/HaloUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ public static String getMachineIP() {
* @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);
}
}

0 comments on commit 5520baf

Please sign in to comment.