Here you can find the source of htmlToText(String html)
public static String htmlToText(String html)
//package com.java2s; //License from project: Open Source License public class Main { public static String htmlToText(String html) { if (html != null) { html = html.replace("å", "\u00e5"); html = html.replace("ä", "\u00e4"); html = html.replace("ö", "\u00f6"); html = html.replace("Å", "\u00c5"); html = html.replace("Ä", "\u00c4"); html = html.replace("Ö", "\u00d6"); }// w ww .jav a 2s. co m return html; } }