Im having trouble with mvc decoding my encoded HTML string when I try to display it in textarea, I tried this:
<textarea rows="3" cols="20" style="width: 80%; height:150px; margin:10px 0px;">
<iframe allowtransparency='true'...
</textarea>
and this:
<textarea rows="3" cols="20" style="width: 80%; height:150px; margin:10px 0px;">
@(Html.Raw("<iframe allowtransparency='true'..."))
</textarea>
But it still displays like <iframe allowtransparency='true' instead of <iframe allowtransparency='true'...
Try escaping your ampersands.
It’ll look like