mirror of https://github.com/halo-dev/halo
parent
ab74d8c28b
commit
5520baf046
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue