I'm Working on dynamically code the data coming from DB, and i need to all Li Element by append in JavaScript no jQuery:
This is my Code:
const x = document.getElementById('messagesContent')
x.append(`<li class="message"><b>User</b><br/>${message}</li>`);
The Result is:
<li class="message"><b>User</b><br/>xxxxxxxx</li>
Come as a text not html