删除html标签,取其中的文本
public String removeHtmlTags() { String str = "<p><b> welcome to test</b></p>"; String pattern = "\\<.*?\\>"; String target = str.replaceAll(pattern, ""); Return target; }
public String removeHtmlTags() { String str = "<p><b> welcome to test</b></p>"; String pattern = "\\<.*?\\>"; String target = str.replaceAll(pattern, ""); Return target; }