Skip to content

Commit

Permalink
handle special characters correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleBinghamSoteriaSoft committed Nov 6, 2023
1 parent 5b0a418 commit dba05d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/openrmf.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ async function getSystemListing(){
systemsListing += 'title="View the system package information and checklists" >' + item.title + ' (' + item.numberOfChecklists + ')</a>';
systemsListing += '</div><div class="systemDescription">';
if (item.description) {
systemsListing += item.description;
systemsListing += htmlEscape(item.description);
} else {
systemsListing += "<i>(No description)</i>"
}
Expand Down Expand Up @@ -482,7 +482,7 @@ async function getSystemRecord(systemGroupId) {
$("#divSystemTitle").html("<b>Title:</b> " + item.title);
$("#frmSystemTitle").val(item.title);
if (item.description){
$("#divSystemDescription").html("<b>Description:</b> " + item.description);
$("#divSystemDescription").html("<b>Description:</b> " + htmlEscape(item.description));
$("#frmSystemDescription").val(item.description);
}
else
Expand Down
2 changes: 1 addition & 1 deletion js/openrmf.min.js

Large diffs are not rendered by default.

0 comments on commit dba05d9

Please sign in to comment.