Java HTML htmlcodeToSpecialchars(String str)

Here you can find the source of htmlcodeToSpecialchars(String str)

Description

htmlcode To Specialchars

License

Apache License

Declaration

public static String htmlcodeToSpecialchars(String str) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static String htmlcodeToSpecialchars(String str) {
        str = str.replaceAll("&", "&");
        str = str.replaceAll(""", "\"");
        str = str.replaceAll("'", "'");
        str = str.replaceAll("&lt;", "<");
        str = str.replaceAll("&gt;", ">");
        return str;
    }//from  w  w  w.  j  a va2s.  co  m
}

Related

  1. htmlBlock(String labelText)
  2. htmlBold(String content)
  3. htmlButton(String value, String action, int width)
  4. HTMLcheck(String doc)
  5. htmlCode(char tok)
  6. htmlcodeToSpecialchars(String str)
  7. htmlContentHeaderGen(String providerNo, String output, String errorMsg)
  8. htmlConvert(String htmlStr)
  9. HTMLEnc(String s)