/**
* 正则预编译
*/
private static final Pattern pattern = Pattern.compile("(<.+?>)|(</.+?>)");
private String dealContent(String content){
// 匹配标签
Matcher matcher = pattern.matcher(content);
while (matcher.find()){
// 替换图片
content= matcher.replaceAll("").replace(" ", "");
}
return content;
}
10-25
912
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-11
997
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-28
2235
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-10
1647
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)