akopdev / obsidian-bibtex-manager

Create literature notes in Obsidian from BibTeX entries, display formatted reference lists, and instantly generate citations.
MIT License
54 stars 1 forks source link

Avoid using innerHTML #5

Closed akopdev closed 2 months ago

akopdev commented 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