How to add a <br/> into source code in javascript?
<p>i got this code:</p>

<pre><code>&lt;h1&gt;JavaScript File API demo&lt;/h1&gt;
&lt;div id="container"&gt;
&lt;label&gt;Upload files to local repository:&lt;/label&gt;&lt;input type="file" accept=".js" id="uploaded" multiple="multiple"/&gt;
&lt;div id="fileInfo" &gt;&lt;/div&gt;

&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;

&lt;script&gt;
$(document).ready(function() {

  if(!(window.File &amp;&amp; window.FileReader &amp;&amp; window.FileList &amp;&amp; window.Blob)){
    $('#fileContent, input, button, #examples').fadeOut("fast");
    $('&lt;p&gt;Oh no, you need a browser that supports File API. How about &lt;a href="http://www.google.com/chrome"&gt;Google/a&gt;?&lt;/p&gt;').appendTo('#container');
  } else {
          $("#uploaded").change(function (e) {
                var files = e.target.files; // FileList object
                // files is a FileList of File objects. List some properties.
                var output = [];
                for (var i = 0, f; f = files[i]; i++) {
                  output.push('&lt;li&gt;&lt;strong&gt;', escape(f.name), 
                            '&lt;/strong&gt; (', f.type || 'n/a', ') - ',
                            f.size, ' bytes, last modified: ',
                            f.lastModifiedDate ? f.lastModifiedDate.toLocaleDateString() : 'n/a',
                            '&lt;/li&gt;');
                  var reader = new FileReader();
                  reader.onload = function(e) {
                      $("#fileInfo").append("&lt;li&gt; Data from file: " + e.target.result + "&lt;/li&gt;");
                  };
                  reader.readAsText(f);
                }
                $("#fileInfo").append('&lt;ul&gt;' + output.join('') + '&lt;/ul&gt;' );
          });
  }
});
</code></pre>

<p></p>

<p>Now, this is the code, for me to upload a javascript (.js) file to my html page...and to read the code from the file into the text field</p>

<p>Now i get all the code i need, and all, but i dont get it like i wrote it...i mean, there are no tabs, no new lines, or something...(but my javascript code has it all)...so for now, i want just to add the new line to my text box...eventually the tab too....but first the new line...</p>

<p>i already tried to add the <br/> to my code in this line</p>

<pre><code> $("#fileInfo").append('&lt;ul&gt;' + output.join('') &lt;!--I added it here--&gt; + '&lt;/ul&gt;'  &lt;!--I added it here--&gt; );
</code></pre>

<p>ofc with the "", and with the ''...</p>

<p>but it didnt work...
mby u know a better way, it does not have to be the br tag...</p>

<p>can u help me?</p>

<p>thx</p>