Here you can find the source of cleanHtmlFromString(String stringToClean)
Parameter | Description |
---|---|
stringToClean | a parameter |
public static String cleanHtmlFromString(String stringToClean)
//package com.java2s; //License from project: Open Source License import org.jsoup.Jsoup; import org.jsoup.safety.Whitelist; public class Main { /**// ww w .j a v a2 s . c om * Utility to remove the HTML tags in the String * * @param stringToClean * @return */ public static String cleanHtmlFromString(String stringToClean) { return Jsoup.clean(stringToClean, Whitelist.basic()); } }