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

Comments

Recent Post

Recent Posts Widget

Popular posts from this blog

Capture image from webcam java code, examples

Use of req.query, req.params and req.body in NODE JS

How to capture finger prints in java