Android HTML String Unescape getHtmlStrCnvrNew(String srcString)

Here you can find the source of getHtmlStrCnvrNew(String srcString)

Description

get Html Str Cnvr New

Declaration

public static String getHtmlStrCnvrNew(String srcString) 

Method Source Code

//package com.java2s;

public class Main {

    public static String getHtmlStrCnvrNew(String srcString) {

        String tmpString = srcString;

        try {/*from   ww w.j a  va  2s .  c o  m*/
            tmpString = tmpString.replaceAll("&lt;", "<");
            tmpString = tmpString.replaceAll("&gt;", ">");
            tmpString = tmpString.replaceAll("&#40;", "(");
            tmpString = tmpString.replaceAll("&#41;", ")");
            tmpString = tmpString.replaceAll("&#35;", "#");
            tmpString = tmpString.replaceAll("&amp;", "&");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return tmpString;
    }
}

Related

  1. getHtmlStrCnvr(String srcString)