Revision 50646
Added by Alessia Bardi about 6 years ago
ResultEntry.java | ||
---|---|---|
9 | 9 |
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService; |
10 | 10 |
import eu.dnetlib.miscutils.datetime.DateUtils; |
11 | 11 |
import eu.dnetlib.miscutils.functional.hash.Hashing; |
12 |
import eu.dnetlib.miscutils.functional.string.EscapeXml; |
|
12 | 13 |
import eu.dnetlib.msro.openaireplus.api.OpenAIRESubmitterUtils; |
13 | 14 |
import eu.dnetlib.msro.rmi.MSROException; |
14 | 15 |
import io.swagger.annotations.ApiModelProperty; |
... | ... | |
16 | 17 |
import org.apache.commons.logging.Log; |
17 | 18 |
import org.apache.commons.logging.LogFactory; |
18 | 19 |
import org.apache.velocity.app.VelocityEngine; |
19 |
import org.apache.velocity.tools.generic.EscapeTool; |
|
20 | 20 |
import org.springframework.ui.velocity.VelocityEngineUtils; |
21 | 21 |
|
22 | 22 |
/** |
... | ... | |
228 | 228 |
} |
229 | 229 |
|
230 | 230 |
final Map<String, Object> model = new HashMap<String, Object>(); |
231 |
model.put("esc", new EscapeTool());
|
|
231 |
model.put("esc", new EscapeXml());
|
|
232 | 232 |
model.put("util", new OpenAIRESubmitterUtils()); |
233 | 233 |
model.put("pub", this); |
234 | 234 |
model.put("objIdentifier", getOpenaireId()); |
Also available in: Unified diff
Use misc-utils escaper: the one in velocity is too old and does not cover all XML entities!