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

OO-2481: fix the conversion of question with Umlaut

parent 1efb46e9
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ import java.util.List; ...@@ -32,6 +32,7 @@ import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Set; import java.util.Set;
import org.apache.commons.lang.StringEscapeUtils;
import org.cyberneko.html.parsers.SAXParser; import org.cyberneko.html.parsers.SAXParser;
import org.olat.core.CoreSpringFactory; import org.olat.core.CoreSpringFactory;
import org.olat.core.helpers.Settings; import org.olat.core.helpers.Settings;
...@@ -631,6 +632,8 @@ public class QTI12To21Converter { ...@@ -631,6 +632,8 @@ public class QTI12To21Converter {
if(!trimmedText.startsWith("<p") && !trimmedText.startsWith("<div")) { if(!trimmedText.startsWith("<p") && !trimmedText.startsWith("<div")) {
text = "<p>" + trimmedText + "</p>"; text = "<p>" + trimmedText + "</p>";
} }
} else {
text = StringEscapeUtils.unescapeHtml(text);
} }
} }
return text; return text;
......
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