Try our conversational search powered by Generative AI!

Property changed from XhtmlString to string

Vote:
 

So in my PageType I have a property like this

[CultureSpecific]
[Display(
Name = "Heading",
Description = "Title, what else?",
GroupName = SystemTabNames.Content,
Order = 0
)]
public virtual XhtmlString Heading { get; set; }

I want to change it from XhtmlString to String, how does that work?

#185632
Nov 28, 2017 10:21
Vote:
 

You can do it, but the strings will contain plain HTML tags as well, I believe. Then you'll need to clean them up.

#185639
Nov 28, 2017 14:44
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.