Дезайн ыыыы
This commit is contained in:
parent
403d7086d4
commit
e7c02c7feb
174 changed files with 15802 additions and 9725 deletions
6
frontend/js/dom.js
Normal file
6
frontend/js/dom.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/** Escapes text for safe interpolation into innerHTML template strings. */
|
||||
export function escapeHtml(str) {
|
||||
const div = document.createElement("div");
|
||||
div.textContent = str ?? "";
|
||||
return div.innerHTML;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue