I'm new to umbraco and have come across a seemingly known issue where a field which is set to use the RTE datatype outputs raw html in the razor view. I've found many answers to this question explaining how you can strip out the html tags. But what's the point of having a Rich Text Editor with no richness?
RTE - what's the point?
Hi all,
I'm new to umbraco and have come across a seemingly known issue where a field which is set to use the RTE datatype outputs raw html in the razor view. I've found many answers to this question explaining how you can strip out the html tags. But what's the point of having a Rich Text Editor with no richness?
eg. for an RTE field where I use this in razor:
<span class="content">@Umbraco.Field("content")</span>
or a suggested option:
<span class="content">@(Html.Raw(@Umbraco.Field("content")))</span>
I get this output:
<p>I <strong>never</strong> thought much about getting richness</p>
My preference is for users to use all features of the RTE including bold, italic, images, links, etc and output the formatted html in my razor view.
What am I missing?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.