【发布时间】:2018-08-07 08:50:15
【问题描述】:
在我的 Angular 4 应用程序中,我有一个类似的字符串
comment: string;
comment = "<p><em><strong>abc</strong></em></p>";
当我在我的 html 中提供此文本时,例如
{{comment}}
然后显示:
<p><em><strong>abc</strong></em></p>
但我需要以粗体和斜体形式显示文本“abc”,例如 abc
我该怎么做?
【问题讨论】: