title: Nesting quotes in JavaScript/HTML
body: <p>How do you nest quotes in HTML beyond the second level? As far as I know, there are only 2 types of quotes - single(') and double("). I am aware of escaping using slashes - you have to escape in the code but that escaping won't work at the browser level. What is the accepted method to get around something like the following?     </p>
  
  <pre><code>&lt;p onclick="exampleFunc('&lt;div id="divId"&gt;&lt;/div&gt;');"&gt;Some Text&lt;/p&gt;
  </code></pre>
  
  <p>That code prints to the browser:</p>
  
  <blockquote>
    <p>');">Some Text</p>
  </blockquote>