Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用我的模型从数据库中提取一个字符串,如下所示:You <h3>look</h3> funny
You <h3>look</h3> funny
所以在我看来我这样做:@Html.Raw(Model.myfield)
所以我期待
你看起来很有趣
相反,我得到:
你 看起来 很有趣
<h3>是块元素。 它打破了它周围的内联流。
<h3>
你可能想要<strong>,它是内联的。
<strong>