Skip to content
Snippets Groups Projects
Commit 18799525 authored by srosse's avatar srosse
Browse files

Merge OpenOLAT 10.3 to OpenOLAT default branch with 9e8e66a25b9aa11245caaa107f7d0924215caf4d

parents 3ae7f264 9879db11
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ import org.olat.core.gui.render.StringOutput;
import org.olat.core.gui.translator.Translator;
import org.olat.core.logging.AssertException;
import org.olat.core.util.CodeHelper;
import org.olat.core.util.Formatter;
import org.olat.core.util.StringHelper;
import org.olat.core.util.WebappHelper;
import org.olat.core.util.filter.FilterFactory;
......@@ -114,6 +115,9 @@ public class DefaultXlsTableExporter implements TableExporter {
cellValue = FilterFactory.getHtmlTagsFilter().filter(cellValue);
if(StringHelper.containsNonWhitespace(cellValue)) {
cellValue = StringEscapeUtils.unescapeHtml(cellValue);
if(cellValue.length() >= 32767) {
cellValue = Formatter.truncate(cellValue, 32760);
}
}
Cell cell = dataRow.createCell(c);
cell.setCellValue(cellValue);
......
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