+/**\r
+* Copyright (C) 2009 EDIT\r
+* European Distributed Institute of Taxonomy\r
+* http://www.e-taxonomy.eu\r
+*\r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/ \r
+\r
package eu.etaxonomy.cdm.jaxb;\r
\r
import java.io.StringReader;\r
"xmlns:view",\r
"xmlns:xsi"};\r
\r
- private static final Log log = LogFactory.getLog(FormattedTextAdapter.class);\r
+ @SuppressWarnings("unused")\r
+ private static final Log logger = LogFactory.getLog(FormattedTextAdapter.class);\r
\r
public FormattedText marshal(String string) throws Exception {\r
if(string != null) {\r
StringWriter stringWriter = new StringWriter();\r
Result output = new StreamResult(stringWriter);\r
transformer.transform(input, output);\r
- return stringWriter.toString();\r
+ String result = stringWriter.toString();\r
+ result = StringEscapeUtils.unescapeXml(result);\r
+ return result;\r
}\r
}\r