This is a migrated thread and some comments may be shown as answers.

[Solved] HTML decoding problems

0 Answers 35 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sune
Top achievements
Rank 1
Sune asked on 04 Feb 2011, 04:23 AM
I have a view that uses Html.EditoForModel() it will not display text properly in the editor.
However when using the same view but providing it with a model rather than a viewmodel ( i.e. using Html.EditorFor() ) it works just fine and text is displayed in bold, underlined etc.

Took me forever to figure out why one view works and another doesn't.

Is this a bug or am I doing something wrong?
Tags
Editor
Asked by
Sune
Top achievements
Rank 1
Share this question
or