// Small shared web helpers for the plugin's HTML responses.
const escapeHtml = (value) => {
const s = value === null || value === undefined ? "" : String(value);
return s
.replace(/&/g, "&")
.replace(//g, ">")
.replace(/"/g, """)
.replace(/'/g, "'");
};
module.exports = {
escapeHtml
};