Author: jleroux
Date: Tue Nov 27 07:51:01 2007
New Revision: 598679
URL:
http://svn.apache.org/viewvc?rev=598679&view=revLog:
A patch from Michael Brohl "StringUtil.htmlSpecialChars: ampersand replaced with "&s;" instead of "&"" (
https://issues.apache.org/jira/browse/OFBIZ-1431) - OFBIZ-1431
Modified:
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java
Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java?rev=598679&r1=598678&r2=598679&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/StringUtil.java Tue Nov 27 07:51:01 2007
@@ -447,7 +447,7 @@
* </ol>
*/
public static String htmlSpecialChars(String html, boolean doubleQuotes, boolean singleQuotes, boolean insertBR) {
- html = StringUtil.replaceString(html, "&", "&s;");
+ html = StringUtil.replaceString(html, "&", "&");
html = StringUtil.replaceString(html, "<", "<");
html = StringUtil.replaceString(html, ">", ">");
if (doubleQuotes) {