String nameStr = Escape.getInstance().encodeEntities(name, " \t\r\n");
String valueStr = Escape.getInstance().encodeEntities(value, "");
StringBuffer buf = new StringBuffer();
buf.append(nameStr)
.append(EQUALS+DOUBLE_QUOTES)
.append(valueStr)
.append(DOUBLE_QUOTES);
return buf.toString();