title: Unterminated string constant javascript
body: <pre><code>onclick="var searchb = jQuery('#'+searchBoxLinkId).value; 
  var searchlink= window.location.protocol + '//' + window.location.hostname+'/Dave2/Pages/FAQSearch.aspx?category='+category+'&amp;k='+searchb;
  window.location = searchlink;" href="javascript: {}"&gt;
  </code></pre>
  
  <p>I have added this line of code to my javascript/html but it gives me the error <code>Unterminated string constant</code> however I cannot see where the problem is.
  I have to do it this way as I am doing something in sharepoint and it seems like this way is the only way it will work</p>