title: AJAX not properly handling input
body: <p>I'm creating a WYSIWYG editor that saves the page via AJAX.</p>
  
  <p>How it works is you add your elements (text, images, etc) to a DIV via the editor, and when you click "save", it sends that DIV's HTML through AJAX to a script that takes this HTML and writes it into "index.html", so it'll update the front page.</p>
  
  <p>My problem: if the DIV has a background image, the AJAX page screws up.  Something to do with all the quotes is my guess (<code>&lt;div style="background-url('picture.png');"&gt;</code>).  It handles everything else fine (images, text with both single and double quotes, etc).</p>
  
  <p>I was looking through Firebug, and it's reporting that it's changing the <code>'picture.png'</code> to <code>&amp;quot;picture.png&amp;quot;</code>.  I've tried replacing the <code>&amp;quot;</code> before it sends, but it's still breaking on the other end from all the quotes.</p>
  
  <p>Does anyone have any idea?</p>