Radzen HTML

Hi,

I use Radzen Htlm editor in my application :

 <RadzenHtmlEditor @bind-Value=@dev.Description style="height: 200px; margin-bottom: 1rem;" UploadUrl="upload/image" />

It works well!!

I want retrieve the value @dev.Description but the text doesn't keep a good format

 <span>@developers.Description</span>

The result is

Have you an idea how I can keep the format from RadzenHtmlEditor?

Thanks in advance to your support!

To display HTML string as html you should cast the result to MarkupString.

<span>@((MarkupString)developers.Description)</span>

More info is available in this blog post.

Thanks for your quick answer.
it works perfectly!