【发布时间】:2017-08-03 09:14:08
【问题描述】:
请在附件中找到我的问题的 html 代码和打印屏幕。当我在 ckeditor 中编写内容并使用 html 标签应用样式时,它会使用 html 标签保存文本,而不仅仅是文本本身,在本例中只是 CONTENT SAMPLE TEXT,并将样式应用于html某些标签,并且不显示
结果:
<div class="form-group">
@Html.LabelFor(model => model.LongDescription1, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.TextAreaFor(model => model.LongDescription1, new { @id = "LongDescription1", @class = "form-control", @rows = "200" })
@Html.ValidationMessageFor(model => model.LongDescription1, "", new { @class = "text-danger" })
<script>CKEDITOR.replace("LongDescription1", { htmlEncodeOutput: true });</script>
</div>
</div>
【问题讨论】:
-
我正在使用 Visual Studio 。
标签: html model-view-controller text ckeditor