Java HTML Encode textToHtml(String html)

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

Description

text To Html

License

Open Source License

Declaration

public static String textToHtml(String html) 

Method Source Code

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

Related

  1. htmlSpecialChars(String html)
  2. htmlspecialchars(String input)
  3. htmlspecialchars(String s)
  4. htmlspecialchars(String str)
  5. textToHtml(final String s)
  6. textToHTML(String message)
  7. textToHtml(String s)
  8. textToHTML(String text)
  9. textToHtml(String text)