Infolinks In Text Ads

Jun 22, 2010

Converts some important chars (int) to the corresponding html string

   Converts some important chars (int) to the corresponding html string
  
    static String conv2Html(int i) {
        if (i == '&') return "&";
        else if (i == '<') return "<";
        else if (i == '>') return ">";
        else if (i == '"') return """;
        else return "" + (char) i;
    }

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...