# Possible to combine html() and kirbytext()?

**URL:** <https://forum.getkirby.com/t/possible-to-combine-html-and-kirbytext/5679>\
**Category:** Questions\
**Tags:** v2\
**Created:** [November 4, 2016, 8:54pm UTC](https://forum.getkirby.com/t/possible-to-combine-html-and-kirbytext/5679 "2016-11-04T20:54:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon2017](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/simon2017/32/7442_2.png) [@simon2017](https://forum.getkirby.com/u/simon2017)\
**Post date:** [November 4, 2016, 8:54pm UTC](https://forum.getkirby.com/t/possible-to-combine-html-and-kirbytext/5679/1 "2016-11-04T20:54:38Z")

</div>

Good Evening Kirby Community,  
i just would like to know if its possible to combine `<?= $page->field()->html() ?>` and \<?= $page-\>field()-\>kirbytext() ?\> in one tag. i hope you know a bit what i mean 😊

_Simon_

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [November 5, 2016, 10:55am UTC](https://forum.getkirby.com/t/possible-to-combine-html-and-kirbytext/5679/2 "2016-11-05T10:55:02Z")

</div>

Yes, that is possible. But what is your use-case for this?

---

<div class="post-metadata">

**Author:** ![mauricehh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mauricehh/32/16912_2.png) [@mauricehh](https://forum.getkirby.com/u/mauricehh)\
**Post date:** [November 5, 2016, 2:00pm UTC](https://forum.getkirby.com/t/possible-to-combine-html-and-kirbytext/5679/3 "2016-11-05T14:00:10Z")

</div>

Doesn’t kirbytext() do all the magic? You can even mix markdown and html in one field

---

<div class="post-metadata">

**Author:** ![simon2017](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/simon2017/32/7442_2.png) [@simon2017](https://forum.getkirby.com/u/simon2017)\
**Post date:** [November 5, 2016, 3:32pm UTC](https://forum.getkirby.com/t/possible-to-combine-html-and-kirbytext/5679/4 "2016-11-05T15:32:05Z")

</div>

@lukasbestle @mauricehh for example if i have a simple text page, and i replace html whit kirbytext it looks a bit different. i dont know how i can say it 😕

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [November 5, 2016, 3:42pm UTC](https://forum.getkirby.com/t/possible-to-combine-html-and-kirbytext/5679/5 "2016-11-05T15:42:12Z")

</div>

Sure, the Kirbytext method wraps everything in `<p>` tags. It all depends where you want to put the content. If you don’t need `<p>` tags, you can use the kirbytextRaw plugin to strip them from the result.

---

<div class="post-metadata">

**Author:** ![simon2017](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/simon2017/32/7442_2.png) [@simon2017](https://forum.getkirby.com/u/simon2017)\
**Post date:** [November 5, 2016, 3:45pm UTC](https://forum.getkirby.com/t/possible-to-combine-html-and-kirbytext/5679/6 "2016-11-05T15:45:39Z")

</div>

okay i will try it, thanks you 🙂 !

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:54pm UTC](https://forum.getkirby.com/t/possible-to-combine-html-and-kirbytext/5679/7 "2025-02-06T16:54:53Z")

</div>

Archived on February 6, 2025, 4:54pm UTC


