Skip to content

Commit 8703454

Browse files
committed
Actually fixed jasp-stats/INTERNAL-jasp#76 this time
1 parent 1235546 commit 8703454

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

JASP-Desktop/html/js/utils.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ function formatColumn(column, type, format, alignNumbers, combine, modelFootnote
3838
if (typeof content === "string") {
3939
if (html) {
4040
content = content.replace(/\u273B/g, "<small>\u273B</small>");
41-
content = content.replace(/</gi, "&lt;");
42-
content = content.replace(/>/gi, "&gt;");
43-
content = content.replace(/&/gi, "&amp;");
41+
content = content.replace(/<(\w)/gi, function(p1, p2) { return '< '+p2; }) //Makes sure there is a space between <char: a<b -> a< b
42+
4443
}
4544
}
4645
formatted = { content: content, "class": clazz };

0 commit comments

Comments
 (0)