title: Can anything else cause a syntax error when injecting code beside a typo?
body: <p>I inject in html code into a html  and although all my other buttons work this pacific button which sends data to a sqlite database gives me the following error.</p>
  
  <p>Uncaught SyntaxError: missing ) after argument list</p>
  
  <p>The problem is I've reviewed the code and tried different approaches and since im injecting the code it wont catch whats wrong only points to DOCTYPE? </p>
  
  <p>The HTML being injected:</p>
  
  <pre><code> $(info).html('&lt;h4 class="media-heading"&gt;' + response[rCnt].title + '&lt;/h4&gt;&lt;h3&gt;&lt;span class="glyphicon glyphicon-star" aria-hidden="true"&gt;    &lt;/span&gt;  ' + response[rCnt].social_rank.toFixed(2) + '&lt;/h3&gt;&lt;h3&gt;&lt;span class="glyphicon glyphicon-print" aria-hidden="true"&gt;    &lt;/span&gt;   ' + response[rCnt].publisher + '&lt;/h3&gt;&lt;h3&gt;&lt;span class="glyphicon glyphicon-home" aria-hidden="true"&gt;    &lt;/span&gt;  &lt;a&gt; ' + response[rCnt].source_url + '&lt;/a&gt;&lt;/h3&gt;&lt;button type="button" class="btn btn-default" id="button1" onclick="saveRecipe(' + response[rCnt].title + ',' + response[rCnt].social_rank.toFixed(2) + ',' + response[rCnt].publisher + ',' + response[rCnt].source_url + ')"  title="Save"&gt;&lt;span class="glyphicon glyphicon-save" aria-hidden="true"&gt;&lt;/span&gt;&lt;/button&gt;');
  </code></pre>
  
  <p>HTML button inside so its easier to read:</p>
  
  <pre><code>&lt;button type="button" class="btn btn-default" id="button1" onclick="saveRecipe(' + response[rCnt].title + ',' + response[rCnt].social_rank.toFixed(2) + ',' + response[rCnt].publisher + ',' + response[rCnt].source_url + ')"  title="Save"&gt;&lt;span class="glyphicon glyphicon-save" aria-hidden="true"&gt;&lt;/span&gt;&lt;/button&gt;
  </code></pre>
  
  <p>The AJAX call that the HTML button provides data to:</p>
  
  <pre><code>function saveRecipe(title, rank, auth, src) {
      $.ajax({
          type: "POST",
          headers: {
              "Content-Type": "application/json"
          },
          url: "/SaveFile",
          data: JSON.stringify({
              name: title,
              rating: rank,
              author: auth,
              source: src
          }),
          success: function(response) {
              console.log("Hii");
              console.log(response);
          },
          error: function(response, error) {
              console.log(response);
              console.log(error);
          }
      });
  }
  </code></pre>