The below code snippet is to allow and perform the html action for a stored value.
In the Model class of your application,
public class myModel {
[AllowHtml]
public string EmbedCode { get; set; }
} Setting '[AllowHtml]' to a property allows Html Action to perform.