0
我有一個字符串,我在其中存儲的HTML。隱藏代碼隱藏的HTML屬性
string receipt = "<html>
<head></head>
<body>
<table style="width: 100%">
<tr id="trInsuranceInfo" style="line-height: normal;">
</tr>
<tr id="trCorpInfo" style="line-height: normal;">
</tr>
<tr id="trInvoiceDetails" style="line-height: normal;">
</tr>
</table>
</body>
</html>
"
我送這個網站作爲電子郵件 我可以隱藏在特定條件後面的代碼TR trInvoiceDetails。 即,當我通過電子郵件trInvoiceDetails發送該HTML不應該在那裏。
什麼是最好的隱藏代碼隱藏tr的方法?
在此先感謝。
@Kobey Douek:HTML存儲在名爲收到字符串變量。 我必須寫一個條件,以便當這個html在tr被隱藏的頁面上呈現時 –
查看更新的答案 –