List of utility methods to do String Quote
StringBuilder | quoteForMdx(StringBuilder buf, String val) Appends a double-quoted string to a string builder. buf.append("\""); String s0 = replace(val, "\"", "\"\""); buf.append(s0); buf.append("\""); return buf; |
String | quoteForRegEx(String input) quote For Reg Ex return "\\Q" + input + "\\E"; |
String | quoteForXML(String from) quote For XML String to = from.replace("&", "&"); to = to.replace("<", "<"); to = to.replace(">", ">"); to = to.replace("'", "'"); to = to.replace("\"", """); return to; |
String | quoteHost(final String hostname) Quote a hostname if it is not null return (hostname != null) ? ("\"" + hostname + "\"") : UNKNOWN_HOST; |
String | quoteHtml(final String s) quote Html String res = s.replace("&", "&"); res = res.replace("<", "<"); res = res.replace(">", ">"); res = res.replace("\n", "<br>"); return res; |
String | quoteHtml(String s) quote Html return s.replaceAll("&", "&").replaceAll(">", ">").replaceAll("<", "<"); |
String | quoteHTML(String string) quote HTML if (string == null || string.length() == 0) { return "{}"; char c = 0; int i; int len = string.length(); StringBuilder sb = new StringBuilder(len + 4); String t; ... |
String | quoteHtmlContent(String x) Replace special characters with entities for HTML content. return replace(x, htmlIn, htmlOut);
|
String | quoteIdentifier(String identifier) quote Identifier return '"' + identifier + '"'; |
String | quoteIdentifier(String identifier, boolean isPedantic) Surrounds identifier with "`" and duplicates these symbols inside the identifier. return quoteIdentifier(identifier, "`", isPedantic); |