|
|
|
@@ -4,6 +4,17 @@ import java.util.Properties; |
|
|
|
|
|
|
|
public class Util |
|
|
|
{ |
|
|
|
/** |
|
|
|
* Escape xml sensitive characters '<' and '&' in argument str with appropriate "&xxx;". |
|
|
|
* @param str |
|
|
|
* @return str with '<' and '&' escaped so it is appropriate to be embeeded as |
|
|
|
* text in an xml/html tag. |
|
|
|
*/ |
|
|
|
static public String xmlEscape(String str) |
|
|
|
{ |
|
|
|
return str.replace("&", "&").replace("<", "<"); |
|
|
|
} |
|
|
|
|
|
|
|
static public String getStringParameter(String name, Properties config) |
|
|
|
{ |
|
|
|
return getStringParameter(name, config, null); |
|
|
|
|