Java HTML to String htmlToText(String html)

Here you can find the source of htmlToText(String html)

Description

html To Text

License

Open Source License

Declaration

public static String htmlToText(String html) 

Method Source Code

//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;
    }
}

Related

  1. html2Text(String html)
  2. htmlToStr(String htmlStr, int max_count)
  3. htmlToString(String aS_Text)
  4. htmlToString(String s)
  5. htmlToString(String string)
  6. htmlToText(String html)
  7. htmlToText(String input)
  8. htmlToText(String sHTML)
  9. toText(String html)