【发布时间】:2014-07-14 19:44:48
【问题描述】:
我有一个字符串,其中包含一些内置在字符串中的字体 css 样式。我正在使用 Razor,我想在 textareafor 或类似的东西中显示结果。有什么好办法吗?
字符串如下所示:
<font color="DD0000"><b>7/10/2014 - CFENDALL</b> Hi Mike - I have invoice 133528E for PO 158960 - This is past due - Please let me know when PO is received. Thank you. Cynthia</font>
我希望样式版本出现在 textarea 中,但目前它只显示字符串而不应用 css。
这是我目前的看法:
<div class="editor-field" id="summary">
@Html.TextAreaFor(model => model.Notes, new { @readonly = "readonly"})
</div>
【问题讨论】: