if (value==null || value.length() == 0) return value;
    public static String addEntities(String value)    {        value = value.replaceAll("&", "&amp;");        value = value.replaceAll("\"", "&quot;");        // actually, &apos; is an XML entity, not in HTML.        // that's why it's commented out.        // value = value.replaceAll("'", "&apos;");        value = value.replaceAll("<", "&lt;");        value = value.replaceAll(">", "&gt;");        return value;    }