Try our conversational search powered by Generative AI!

String property that does not convert to HTML


I want to add a property so my editor can insert a script at the bottom of some, not all, pages. I created a String property, but when the page renders, all the < and > get converted to html, < and > and so on. Is there a way to have something like this that will not convert and only display the content as it was entered? Using Epi 7.5.


Oct 04, 2016 23:05

You don't tell how you're rendering the property, but I'm guessing you're using something along the lines @Model.MyProperty which html encodes the output. Try @Html.Raw() instead.

Oct 04, 2016 23:28

Perfect! Thank you, Espen

Oct 05, 2016 3:43
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.