# Formar as HTML View

**URL:** <https://discourse.cakephp.org/t/formar-as-html-view/10252>\
**Category:** Uncategorized\
**Created:** [March 28, 2022, 10:20pm UTC](https://discourse.cakephp.org/t/formar-as-html-view/10252 "2022-03-28T22:20:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wtamayom](https://avatars.discourse-cdn.com/v4/letter/w/b2d939/32.png) [@wtamayom](https://discourse.cakephp.org/u/wtamayom)\
**Post date:** [March 28, 2022, 10:20pm UTC](https://discourse.cakephp.org/t/formar-as-html-view/10252/1 "2022-03-28T22:20:42Z")

</div>

Hi.

I have in my DB a fied where I do save HTML Data. I want in my view than that field render as html.

How can make it?

Thanks.

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [March 28, 2022, 11:26pm UTC](https://discourse.cakephp.org/t/formar-as-html-view/10252/2 "2022-03-28T23:26:26Z")

</div>

Is there something not working about just echoing it in your view?

---

<div class="post-metadata">

**Author:** ![Kaiser85](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kaiser85/32/2714_2.png) [@Kaiser85](https://discourse.cakephp.org/u/Kaiser85)\
**Post date:** [May 17, 2023, 10:29pm UTC](https://discourse.cakephp.org/t/formar-as-html-view/10252/3 "2023-05-17T22:29:27Z")

</div>

You should get the field from the DB:  
[https://book.cakephp.org/3/en/orm/retrieving-data-and-resultsets.html#getting-a-single-entity-by-primary-key](https://book.cakephp.org/3/en/orm/retrieving-data-and-resultsets.html#getting-a-single-entity-by-primary-key)

And echo them on the view:  
[https://book.cakephp.org/3/en/views.html#alternative-echos](https://book.cakephp.org/3/en/views.html#alternative-echos)

---

<div class="post-metadata">

**Author:** ![jimgwhit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jimgwhit/32/378_2.png) [@jimgwhit](https://discourse.cakephp.org/u/jimgwhit)\
**Post date:** [May 25, 2023, 5:23am UTC](https://discourse.cakephp.org/t/formar-as-html-view/10252/4 "2023-05-25T05:23:34Z")

</div>

I hope and suggest the data is sanitized against malicious scripts.

I suggest learning more about security.
