javascript - Why does jQuery compress whitespace? -


i have ajax call returns table. here's row table:

<tr>     <td>1</td>     <td>excelsior</td>     <td>a</td>     <td>erika d. kirby (sr)<br/>ariana m. johnson (jr)<br/>maddison z. lacey (so)<br/>jada f. holm (sr)</td>     <td>1:53.45</td>     <td></td>     <td></td>     <td>8.00</td> </tr> 

i use jquery write table existing div element:

function display_scores( args , response ) {     $("#results").html( response ); }  

here, repsonse contains table in question. when it's rendered, whitespace between parts of names gone. fourth cell:

<td>erikad.kirby(sr)<br>arianam.johnson(jr)<br>maddisonz.lacey(so)<br>jadaf.holm(sr)</td> 

what happened whitespace?


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -