Closed akopdev closed 2 months ago
templateContainerEl.innerHTML = "" +
Instead, use the DOM API or the Obsidian helper functions, such as createEl(), createDiv() and createSpan() to build the DOM element programmatically. For more information, refer to HTML elements.
To cleanup a HTML elements contents use el.empty();
Avoid using innerHTML
templateContainerEl.innerHTML = "" +
Instead, use the DOM API or the Obsidian helper functions, such as createEl(), createDiv() and createSpan() to build the DOM element programmatically. For more information, refer to HTML elements.
To cleanup a HTML elements contents use el.empty();
Avoid using innerHTML