# richText displays HTML tags in rendered content

**URL:** <https://forum.builder.io/t/richtext-displays-html-tags-in-rendered-content/580>\
**Category:** CMS\
**Tags:** visual-editor, react\
**Created:** [April 15, 2021, 11:50pm UTC](https://forum.builder.io/t/richtext-displays-html-tags-in-rendered-content/580 "2021-04-15T23:50:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdonahue](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rdonahue](https://forum.builder.io/u/rdonahue)\
**Post date:** [April 15, 2021, 11:50pm UTC](https://forum.builder.io/t/richtext-displays-html-tags-in-rendered-content/580/1 "2021-04-15T23:50:54Z")

</div>

I am using a component that takes the richText input type, and when I am managing the content of this input in the CMS, the HTML syntax is coming through, but the layout of the content isn’t. I don’t expect to see HTML tags rendered on the component in the visual editor, and I do expect it to have the layout as its displayed in the options tab. Here’s a screenshot:

 ![Screen Shot 2021-04-15 at 16.50.25](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/02a7bfb53f50b1f4f2e135e440a3b24afefb53e7.jpeg)

Can I get help troubleshooting this issue?

---

<div class="post-metadata">

**Author:** ![kara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/kara/32/80_2.png) [@kara](https://forum.builder.io/u/kara)\
**Post date:** [April 16, 2021, 5:43pm UTC](https://forum.builder.io/t/richtext-displays-html-tags-in-rendered-content/580/2 "2021-04-16T17:43:05Z")

</div>

Hey @rdonahue, would you send me the url for this content entry? When using the rich text editor in Builder, are you pasting content into the field or using the bullets button for your list items?

---

<div class="post-metadata">

**Author:** ![rdonahue](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rdonahue](https://forum.builder.io/u/rdonahue)\
**Post date:** [April 16, 2021, 7:12pm UTC](https://forum.builder.io/t/richtext-displays-html-tags-in-rendered-content/580/3 "2021-04-16T19:12:46Z")

</div>

Thanks Kara, I found the problem! I needed to change my code to `<p dangerouslySetInnerHTML={{ __html: mainContent }}></p>`
