我想將此行中的字符串"Add Problem Report \n Add Maintenance Report \n Add Expeses Report \n Add Contract"
分隔成新行。我試過br,pre和\ n但是id不起作用。如何將字符串分隔爲新行
HTML
<input name="add" value="1" type="checkbox" /> Add Contents <a href="#" data-content="Add Problem Report Add Maintenance Report <br> Add Expeses Report <br>Add Contract"
<span class="glyphicon glyphicon-info-sign" id="add_inf">
</span></a>
您可能需要逃避你的字符串你這話是什麼呢? –