2017-03-16 20 views
0

所以這裏存在的問題會讓我發瘋。因此,當以下數據從服務響應中返回時,它將顯示在表格單元格中。我需要將它格式化爲單元格,而不是將它作爲一個長串系列的單詞。我試圖字突破:突破,所有中一些其他的東西,但沒有骰子讓單詞在動態回來的表單元中破碎

樣品CSS

.dataTable { 

.maxwidth-300 { 
    max-width:300px; 
    word-wrap: break-word; 
} 

.maxwidth-100 { 
    max-width:100px; 
    word-wrap: break-word; 
}} 

    <p>Displays like this </p> 
    <td maxwidth-300>Response : order|confirmed' email updated with status 'Sent'. (Email ID: 835) Subject: Order Confirmed: Order 11-001270 for Anna's Flower Shoppe From: Company Reply-to: [email protected] To: [email protected] Cc: [email protected] </td> 

有沒有辦法得到它來顯示這樣的CSS?

<td maxwidth-300> 
'order|confirmed' email updated with status 'Complete'. (Email ID: 833) 

Subject: Order Confirmation: Order 11-001270 for Anna's Flower Shoppe 
From: Company 
Reply-to: [email protected] 
To: [email protected] 
Cc: [email protected] </td> 

在此先感謝

回答

0

沒關係,我用JS逃脫JSON '\ n' 字符