Here you can find the source of textToHtml(String html)
public static String textToHtml(String html)
//package com.java2s; //License from project: Open Source License public class Main { public static String textToHtml(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", "Ö"); }// ww w . j a va 2 s. c om return html; } }