Skip to content
Snippets Groups Projects
Commit 0c700829 authored by felmer's avatar felmer
Browse files

LMS-1747 using the right StringEscapeUtils class

SVN: 17823
parent 6bc7fe86
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,11 @@ import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
import org.apache.commons.lang.StringEscapeUtils;
import org.apache.commons.lang.StringUtils;
import org.xml.sax.InputSource;
import ch.systemsx.cisd.common.utilities.ExceptionUtils;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.util.lang.StringEscapeUtils;
/**
* Set of standard functions used in jython expressions.
......@@ -63,7 +63,7 @@ final class StandardFunctions
try
{
XPathExpression expression = XPATH.compile(xPath);
String str = StringEscapeUtils.unescapeHtml(xmlString);
String str = StringEscapeUtils.unescapeXml(xmlString);
String result = expression.evaluate(new InputSource(new StringReader(str)));
return result;
} catch (XPathExpressionException ex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment