title: Wrapping javascript concatenated html correctly with ",' and \
body: <p>I'm having a bit of trouble correctly displaying a message in a webpage I am trying to create. The code I have is:</p>
  
  <pre><code>content.innerHTML += "&lt;button 'onclick=\"likeFunction(" + feed.messages[y]._id + ")\"&gt;" + "Like(" + feed.messages[y].likesCount + ")" + "&lt;/button&gt;"
  </code></pre>
  
  <p>When I inspect the element on the page source, I get this output:</p>
  
  <pre><code>&lt;button 'onclick="like(idOfObject)"&gt;Likes(likeNumber)&lt;/button&gt;
  </code></pre>
  
  <p>What I need it to look like is:</p>
  
  <pre><code>&lt;button 'onclick="like("idOfObject")"&gt;Likes(likeNumber)&lt;/button&gt;
  </code></pre>
  
  <p>I'm a bit confused on how I would add more single or double quotes and where to escape them correctly to get this desired output.</p>