title: unterminated string literal in javascript push() in Wordpress
body: <p>I've used push() to push value with html code into an array but it seems that after double quotes WP(WordPress) automatically terminates the html code. Code is as below:</p>
  
  <pre><code>if (navigator.appName == 'Microsoft Internet Explorer') {
              xdr = new XDomainRequest(); 
              xdr.onload=function() {
                  var data = jQuery.parseJSON(xdr.responseText);
                  var rAray = [];
                  for (var i=0, tot=data.length; i &lt; tot; i++) {
                      rAray.push('&lt;div class="mm-rArr" style="border-bottom: #f0f0f0 dotted 1px;padding: 10px 0px;text-align: center;"&gt;' + data[i] + '&lt;/div&gt;&lt;p&gt;');
                  }
                  $('.mm-rAray').html(rAray);
              }   
              xdr.open("GET", "URL to API");
              xdr.send();
          }
          else {
              jQuery.support.cors = true;
              $.ajax({
                  url: "URL to API",
                  cache: false,
                  dataType: "json",
                  success: function (data) {
                      var rAray = [];
                      $.each(data, function (key, val) {
                          rAray.push('&lt;div class="mm-rAray" style="border-bottom: #f0f0f0 dotted 1px;padding: 10px 0px;text-align: center;"&gt;' + val + '&lt;/div&gt;&lt;p&gt;');
                      });
                      console.log(rAray);
                      $('.mm-rAray').html(rAray.join(''));
                  }
              });
          }
  </code></pre>
  
  <p>Error says <strong>unterminated string literal at rAray.push('</strong></p>
  
  <p>I've tried with creating an element by </p>
  
  <pre><code>$('div').addClass('mm-rAray').text(val); 
  </code></pre>
  
  <p>too but same error comes at location $('. Don't know what's wrong there. Please help me to figure out this issue.</p>