November Happy Hour will be moved to Thursday December 5th.

String property that does not convert to HTML

Vote:
 

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.

Thanks!

#160735
Oct 04, 2016 23:05
Vote:
 

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.

#160736
Oct 04, 2016 23:28
Vote:
 

Perfect! Thank you, Espen

#160741
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.