title: jquery convert array to string html
body: <p>as the title stated. how do i do that? i read in some forum to use <strong>stringify?</strong> and how do i use it?</p>
  
  <p>PHP:</p>
  
  <pre><code>$notes = $db-&gt;query("SELECT * FROM notes WHERE id_user = '$id_user'");
  $output = array();
  while($note = $notes-&gt;fetch_assoc()) {
    $noting = '&lt;span class="block_note"&gt;'.$note['note'].'&lt;/span&gt;';
    array_push($output, $noting);
  }
  $data['ok'] = true;
  $data['message'] = $output;
  echo json_encode($data);
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$.get("include/get_details.php?id_user=1",function(data){
    if (data.ok){
       $.each(data, function(key,id){
          $("#notes").append(data.message);
       })
  
    }
  }, "json");
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>{
  "ok":true,
  "message":[
    "&lt;span class=\"block_note\"&gt;note1&lt;\/span&gt;",
    "&lt;span class=\"block_note\"&gt;note2&lt;\/span&gt;",
    "&lt;span class=\"block_note\"&gt;note3&lt;\/span&gt;"
  ]
  }
  </code></pre>