[Yanel-commits] rev 27474 -
public/yanel/trunk/src/core/java/org/wyona/yanel/core/serialization
simon at wyona.com
simon at wyona.com
Wed Sep 19 17:26:26 CEST 2007
Author: simon
Date: 2007-09-19 17:26:26 +0200 (Wed, 19 Sep 2007)
New Revision: 27474
Modified:
public/yanel/trunk/src/core/java/org/wyona/yanel/core/serialization/XMLSerializer.java
Log:
see bug#5557. thanks to josias
Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/serialization/XMLSerializer.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/serialization/XMLSerializer.java 2007-09-19 14:59:24 UTC (rev 27473)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/serialization/XMLSerializer.java 2007-09-19 15:26:26 UTC (rev 27474)
@@ -124,8 +124,8 @@
/**
* Replaces some characters by their corresponding xml entities.
- * @param str
- * @return
+ * @param string
+ * @return escaped string
*/
public String replaceEntities(String str) {
// there may be some & and some & mixed in the input, so first transform all
@@ -134,9 +134,6 @@
str = str.replaceAll("&", "&");
str = str.replaceAll("&", "&");
str = str.replaceAll("<", "<");
- str = str.replaceAll(">", ">");
- str = str.replaceAll("'", "'");
- str = str.replaceAll("\"", """);
return str;
}
More information about the Yanel-commits
mailing list