Skip to content

Commit

Permalink
Fix rendering of HTML option
Browse files Browse the repository at this point in the history
The difficulty column contains HTML. The value should not be escaped.
Fixes mre/idiomatic-rust#45
  • Loading branch information
mart-e committed Feb 6, 2024
1 parent 394507c commit acca5c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/idiomatic-rust/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ $(document).ready(function () {
.sort()
.unique()
.each(function (d, j) {
select.add(new Option(d));
let option = new Option("");
option.innerHTML(d);
select.add(option);
});
});
},
Expand Down

0 comments on commit acca5c4

Please sign in to comment.