< entity
+ */
+ public static final String LESS_THAN_ENTITY = "<";
+
+ /**
+ * Escaped > entity
+ */
+ public static final String GREATER_THAN_ENTITY = ">";
+
+ /**
+ * Escaped & entity
+ */
+ public static final String AMPERSAND_ENTITY = "&";
+
+ /**
+ * Escaped ' entity
+ */
+ public static final String APOSTROPHE_ENTITY = "'";
+
+ /**
+ * Escaped " entity
+ */
+ public static final String QUOTE_ENTITY = """;
+
/**
* Formatter used by the getDateFormatted method.
*/
@@ -176,7 +201,7 @@ public class ChangeLogEntry
ChangeLogFile file = (ChangeLogFile) e.nextElement();
buffer.append("\t\tEscape the toString of the given object.
+ * For use in an attribute value.
value.toString()
+ * @return text with characters restricted (for use in attributes) escaped
+ */
+ public static final String escapeValue(Object value) {
+ StringBuffer buffer = new StringBuffer(value.toString());
+ for (int i=0, size = buffer.length(); i