web: added __gpio-label class by user's request

This commit is contained in:
Maxim Devaev 2025-08-10 15:29:27 +03:00
parent 42efb73c98
commit 4a0029bab7

View File

@ -134,7 +134,8 @@ export function Gpio(__recorder) {
var __createItem = function(item) {
if (item.type === "label") {
return item.text;
// User may want to use HTML in the text so we don't perform escaping here.
return `<span class="__gpio-label">${item.text}</span>`;
} else if (item.type === "input") {
let e_ch_class = tools.escape(`__gpio-led-${item.channel}`);