title: Anchor link with space in it
body: <p>I´ve got this script:</p>
  <h2>JS</h2>
  <pre><code>$(&quot;#content div.nav&quot;).each(function() {
     $(&quot;.navi ul&quot;).append('&lt;li&gt;&lt;a href=&quot;#'+ $(this).attr(&quot;id&quot;) + '&quot;&gt;' + $(this).attr(&quot;id&quot;) + '&lt;/a&gt;&lt;/li&gt;');
  });
  </code></pre>
  <p>It generates out of ID´s a navigation, but sometimes I´ve got a ID with a space for example &quot;Agen da&quot; and with such an anker the script doesnt scroll, can you help me with that?</p>
  <h2>Fiddle</h2>
  <p><a href="http://jsfiddle.net/RDFf9/14/" rel="nofollow noreferrer">http://jsfiddle.net/RDFf9/14/</a></p>