Here you can find the source of cleanHTMLTags(String str)
Parameter | Description |
---|---|
str | The HTML sting |
public static String cleanHTMLTags(String str)
//package com.java2s; //License from project: Open Source License import org.jsoup.Jsoup; public class Main { /**/*from w w w.jav a 2 s . c om*/ * Remove HTML tags. * * @param str * The HTML sting * @return */ public static String cleanHTMLTags(String str) { if (str == null) { return null; } return Jsoup.parse(str).text(); } }