title: JavaScript: Escaping double quotes in HTML
body: <p>How can I prevent the <code>images[i].title</code> below from breaking the HTML if it contains double quotes?</p>
  
  <pre><code>for (i=0; i&lt;=images.length-1; i++) {
      gallery += '&lt;img width="250" height="250" src="' +  images[i].src + '" title="' + images[i].title + '" /&gt;';
  }
  </code></pre>