我有一个这样的 HTML:
<table id="mytable">
<tr>
<td>
Name:
Rica
Lastname:
Florentino
Amount:
3,000
</td>
</tr>
</table>
我怎样才能按原样显示它?输出似乎将换行符转换为空格。我得到的输出是:
Name: Rica Lastname: Florentino Amount: 3,000
它应该是:
Name:
Rica
Lastname:
Florentino
Amount:
3,000