Revision c00650f4
Added by Katja Luther almost 15 years ago
cdmlib-model/pom.xml | ||
---|---|---|
155 | 155 |
<dependency> |
156 | 156 |
<groupId>org.apache.poi</groupId> |
157 | 157 |
<artifactId>poi</artifactId> |
158 |
</dependency> |
|
159 |
<dependency> |
|
160 |
<groupId>commons-lang</groupId> |
|
161 |
<artifactId>commons-lang</artifactId> |
|
158 | 162 |
</dependency> |
159 | 163 |
<dependency> |
160 | 164 |
<groupId>joda-time</groupId> |
cdmlib-model/src/main/java/eu/etaxonomy/cdm/jaxb/FormattedTextAdapter.java | ||
---|---|---|
14 | 14 |
import javax.xml.transform.dom.DOMSource; |
15 | 15 |
import javax.xml.transform.stream.StreamResult; |
16 | 16 |
|
17 |
//import org.apache.commons.lang.StringEscapeUtils;
|
|
17 |
import org.apache.commons.lang.StringEscapeUtils; |
|
18 | 18 |
import org.apache.commons.logging.Log; |
19 | 19 |
import org.apache.commons.logging.LogFactory; |
20 | 20 |
import org.w3c.dom.DOMException; |
... | ... | |
43 | 43 |
|
44 | 44 |
public FormattedText marshal(String string) throws Exception { |
45 | 45 |
if(string != null) { |
46 |
//string = StringEscapeUtils.escapeXml(string);
|
|
46 |
string = StringEscapeUtils.escapeXml(string); |
|
47 | 47 |
String documentString = "<?xml version=\"1.0\"?><text>" + string + "</text>"; |
48 | 48 |
//log.debug("Parsing " + documentString); |
49 | 49 |
FormattedText text = new FormattedText(); |
Also available in: Unified diff
jaxb/FormattedTextAdapter.java Fehler behoben