【发布时间】:2017-08-29 18:18:46
【问题描述】:
我正在尝试将 HTML 格式的文本从我的资源文件放置到我的 aspx 页面中的 <div>,但它按原样放置文本,而不是 HTML。
myPage.apsx:
<%@ Import Namespace="Resources" %>
....
....
<div>
<%: myResources.myKey %>
</div>
这会导致:
This is the first line.<br>This is the second line.
当我想要的输出是:
This is the first line.
This is the second line.
【问题讨论】: