title: Javascript : How can i add "&times;" in a button using javascript
body: <p>I have a java script code that when i click submit button it will add list in my List items. but i want my list to have and "X" button or specifically "&times;" for deleting purpose. my code goes like this : </p>
  
  <pre><code>    const closeBtn = document.createElement('button');
  
      closeBtn.className = "closeBtn";
  
      closeBtn.type = "button";
  
      closeBtn.textContent = "&amp;times;";
  </code></pre>
  
  <p>But instead of getting the X button i want, i get a button like this:</p>
  
  <p><img src="https://i.stack.imgur.com/r116b.png" alt="this"></p>