Exemple #1
0
 /**
  * Escapes special xml characters within a string. <br>
  * < > & " are escaped. The single quote character is not escaped.
  *
  * @param s the string to escape
  * @return the escaped string
  */
 public static String escapeXmlForBrowser(String s) {
   return Val.execEscapeXml(s, false);
 }
Exemple #2
0
 /**
  * Escapes special xml characters within a string. <br>
  * < > & " ' are escaped.
  *
  * @param s the string to escape
  * @return the escaped string
  */
 public static String escapeXml(String s) {
   return Val.execEscapeXml(s, true);
 }