velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1776045 - /velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java
Date Mon, 26 Dec 2016 08:15:09 GMT
Author: cbrisson
Date: Mon Dec 26 08:15:09 2016
New Revision: 1776045

URL: http://svn.apache.org/viewvc?rev=1776045&view=rev
Log:
[tools] avoid deprecated method

Modified:
    velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java

Modified: velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java?rev=1776045&r1=1776044&r2=1776045&view=diff
==============================================================================
--- velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java
(original)
+++ velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/EscapeTool.java
Mon Dec 26 08:15:09 2016
@@ -372,7 +372,7 @@ public class EscapeTool extends SafeConf
         {
             return null;
         }
-        return StringEscapeUtils.escapeXml(String.valueOf(string));
+        return StringEscapeUtils.escapeXml10(String.valueOf(string));
     }
 
     /**



Mime
View raw message