class StringFunctions {

    public static String stripHtml(String content) {
        return ofNullable(content).map(contentValue -> {
                    String cleaned = Jsoup.clean(content, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false));
                    return cleaned.trim().replaceAll("[ \t]+", " ");
                }
        ).orElse(null);
    }

    private  StringFunctions();

}