canvas: Use text() instead of html()

This commit is contained in:
Julian Metzler 2024-02-07 23:22:31 +01:00
parent d16adcaaae
commit 47fdf1608e
1 changed files with 3 additions and 3 deletions

View File

@ -313,13 +313,13 @@
// Add home position
let option = $("<option>");
option.attr("value", unit["home"]);
option.html("&lt;Home&gt;");
option.text("<Home>");
input.append(option);
for (const [key, value] of Object.entries(map)) {
let option = $("<option>");
option.attr("value", key);
option.html(value);
option.text(value);
input.append(option);
}
}
@ -851,7 +851,7 @@
function onGetDeviceInfoSuccess(data, textStatus, jqXHR) {
document.title += " - " + data['hostname'];
$("#hostname").html(data['hostname']);
$("#hostname").text(data['hostname']);
}
function onGetDeviceInfoError(jqXHR, textStatus, errorThrown) {