Skip to content

Commit b0a76a4

Browse files
committed
escapeHtml was being called with integer values (specifically task_list.id which is sometimes an integer)
1 parent 82a4629 commit b0a76a4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

viewer.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,8 @@ <h1 class="text-2xl font-semibold text-gray-900 mb-2">Trajectory Viewer</h1>
12711271
}
12721272

12731273
function escapeHtml(str) {
1274-
return str
1274+
if (str == null) return '';
1275+
return String(str)
12751276
.replace(/&/g, "&amp;")
12761277
.replace(/</g, "&lt;")
12771278
.replace(/>/g, "&gt;");

0 commit comments

Comments
 (0)