Good afternoon, everybody, there is text typed and formatted in HtmlTextEditor. But when outputting it via @ Html.DisplayFor all tags are displayed as text.

How to display it with regard to markup.

    1 answer 1

    Use the helper @ Html.Raw (string)

    • that is, if they went to the database as tags, and not like for example & lt; - Dmitry
    • @Dmitry, well, yes, since texteditor, I did not think about it ... in this case, then additionally go through the HttpUtility.HtmlDecode method. - Alex Krass