cs ファイルからいくつかの html コードを作成していますが、これを実際のサイトにレンダリングしたいと考えています。しかし、レンダリングされるのは、レンダリングされたものではなく、「生の」html コードです。私は何を間違っていますか?
.cshtml コード:
<div>
@class1.createhtml();
</div>
.cs コード:
public static string createhtml()
{
return "<p>hi</p>";
}