Skip to content

Commit

Permalink
Merge pull request #288 from ticalc-travis/settings-html-escaping
Browse files Browse the repository at this point in the history
Work around HTML escaping issues with certain settings
  • Loading branch information
gfwilliams authored Oct 5, 2023
2 parents 389056c + 1ed0a55 commit 45a5a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/core/menuSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
} else {
html += '<select name="'+configName+'" style="float: right;">';
for (var key in config.type)
html += '<option value="'+Espruino.Core.Utils.escapeHTML(key)+'" '+(key==value?"selected":"")+'>'+
html += '<option value="'+Espruino.Core.Utils.escapeHTML(key, false)+'" '+(key==value?"selected":"")+'>'+
Espruino.Core.Utils.escapeHTML(config.type[key])+
'</option>';
html += '</select>';
Expand Down

0 comments on commit 45a5a81

Please sign in to comment.