title: Include html tag in jquery function
body: <p>I have this jQuery function:</p>
  
  <pre><code>$(function() {
    var str = $(location).attr('href');
    var myString = str.substr(str.indexOf("?id=")+4);
    $.getJSON(
      'http://sat3.altervista.org/index.php', 
      { get_param: 'value' }, 
      function(data) {
        for (var i = 0; i &lt; data.length; i++) {
          if (myString == (data[i]["Nr SAT"])) {
            $('body').append($('&lt;p id="data"&gt;').html(data[i]["Data"]));
            $('body').append($('&lt;p&gt;').html('Tipo Servizio: '+ data[i]["Tipo Servizio"]));
            $('body').append($('&lt;p&gt;').html('Stato: '+ data[i]["Stato"]));
            $('body').append($('&lt;p&gt;').html('Attributo: '+ data[i]["Attributo"]));
          }           
        }
      }
    );
  });
  </code></pre>
  
  <p>If after the control <code>if (myString == (data[i]["Nr SAT"]))</code> i would  write tag html like <code>&lt;p&gt;</code>, in which way i can include it in the function??</p>