Android HTML Encode replaceHTMLTags(final String source)

Here you can find the source of replaceHTMLTags(final String source)

Description

replace HTML Tags

Declaration

private static String replaceHTMLTags(final String source) 

Method Source Code

//package com.java2s;

public class Main {
    private static String replaceHTMLTags(final String source) {
        String modified = new String(source);
        return modified.replace("&nbsp;", " ").replace("&lt;", "<")
                .replace("&gt;", ">").replace("&amp;", "&")
                .replace("&quot;", "\"").replace("\n", "");
    }/* ww w.j a v  a2s. com*/
}

Related

  1. htmEncode(String input)
  2. htmlencode(String str)
  3. encodeHtml(String to_encode)
  4. fromHTML(String textToTransform)
  5. htmlEncode(String stringToEncode)