メインページにはコード@{Html.RenderPartial("_Partial1.cshtml");}があり、パーシャルにはHTML文字列があります。
@{
// The string is actually dynamic, not static. This is here for simplicity
string abc="<div class=\"error\">abc</div>";
}
@abc
いくつかのCSSエラースタイルで出力したいのですabcが、実際には取得しました<div class="error">abc</div>-もちろん、そこにはスタイルがありません。文字列ではなくHTMLソースコードとして解釈するにはどうすればよいですか?