I am wondering how to get html markup language to be displayed in a web page when using Html Encode which is being used to replace some string like in the example below.
@(Html.Raw(Html.Encode(Model.Test).Replace("\n", "<br />")))
Of course, just using
@(Html.Raw(Model.Name)) e.g.<b>test/b> = test
Will achieve what I am asking for but then I will lose the replace code.
I could do this replacing functionality in the controller which may be the best method. However, I am intrigued to whether this can be done just in the view.
Thanks