去除字符串中的html标签

String text = “<p>lahobjojbblj</p>”
        text = text.replaceAll("</?[^>]+>", "");
        text = text.replaceAll("\\s*|\t|\r|\n", "");

猜你喜欢

转载自blog.csdn.net/wang_97/article/details/85063163
今日推荐