# RadzenHtml component

**URL:** <https://forum.radzen.com/t/radzenhtml-component/11521>\
**Category:** Radzen.Blazor Components\
**Created:** [August 11, 2022, 10:08pm UTC](https://forum.radzen.com/t/radzenhtml-component/11521 "2022-08-11T22:08:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grwomack](https://forum.radzen.com/letter_avatar_proxy/v4/letter/g/9fc348/32.png) [@grwomack](https://forum.radzen.com/u/grwomack)\
**Post date:** [August 11, 2022, 10:08pm UTC](https://forum.radzen.com/t/radzenhtml-component/11521/1 "2022-08-11T22:08:36Z")

</div>

Hi,

I see there are two HTML components

1. RadzenHtml
2. RadzenHtmlEditor

I would like to render a string which includes HTML tags in it. Which component should I use to do that without allowing the user to edit the text itself?

I tried using the RadzenHtml component but it did not render the text and when I look at the component itself I did not see anything that would do the rendering.

The Editor component worked but I felt that I was misusing it if I did not want the user to be able to edit the text.

Best,  
Garrett

---

<div class="post-metadata">

**Author:** ![grwomack](https://forum.radzen.com/letter_avatar_proxy/v4/letter/g/9fc348/32.png) [@grwomack](https://forum.radzen.com/u/grwomack)\
**Post date:** [August 11, 2022, 11:16pm UTC](https://forum.radzen.com/t/radzenhtml-component/11521/2 "2022-08-11T23:16:53Z")

</div>

Hi Everyone,

After some more investigation, I found that you can use the MarkupString class, which is native to blazor, to accomplish what I was trying to do.

> **[MarkupString Struct (Microsoft.AspNetCore.Components)](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.markupstring?view=aspnetcore-6.0)**
>
> A string value that can be rendered as markup such as HTML.

Best,  
Garrett

---

<div class="post-metadata">

**Author:** ![Ahmed1](https://forum.radzen.com/user_avatar/forum.radzen.com/ahmed1/32/16854_2.png) [@Ahmed1](https://forum.radzen.com/u/Ahmed1)\
**Post date:** [January 17, 2024, 6:34am UTC](https://forum.radzen.com/t/radzenhtml-component/11521/3 "2024-01-17T06:34:41Z")

</div>

by using MarkupString it randered only html not radzen template like radzendropdown.  
i want to store redzen component in string and render in page .how i can do??

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 17, 2024, 6:56am UTC](https://forum.radzen.com/t/radzenhtml-component/11521/4 "2024-01-17T06:56:22Z")

</div>

You can't. Also don't post duplicate questions in different threads. It is against our forum guidelines.
