Skip to content

Commit f59c393

Browse files
committed
fix: render book details as text
1 parent 84d3aa4 commit f59c393

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎debugging/book-library/script.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ function render() {
6464
let pagesCell = row.insertCell(2);
6565
let wasReadCell = row.insertCell(3);
6666
let deleteCell = row.insertCell(4);
67-
titleCell.innerHTML = myLibrary[i].title;
68-
authorCell.innerHTML = myLibrary[i].author;
69-
pagesCell.innerHTML = myLibrary[i].pages;
67+
titleCell.textContent = myLibrary[i].title;
68+
authorCell.textContent = myLibrary[i].author;
69+
pagesCell.textContent = myLibrary[i].pages;
7070

7171
//add and wait for action for read/unread button
7272
let changeBut = document.createElement("button");

0 commit comments

Comments
 (0)