# Preview of kirbytext in blocks

**URL:** <https://forum.getkirby.com/t/preview-of-kirbytext-in-blocks/23057>\
**Category:** Questions\
**Tags:** v3\
**Created:** [August 4, 2021, 9:54am UTC](https://forum.getkirby.com/t/preview-of-kirbytext-in-blocks/23057 "2021-08-04T09:54:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [August 4, 2021, 9:57am UTC](https://forum.getkirby.com/t/preview-of-kirbytext-in-blocks/23057/2 "2021-08-04T09:57:24Z")

</div>

You need a route that returns the parsed text

> [@Parse Kirbytext in Panel](https://forum.getkirby.com/t/parse-kirbytext-in-panel/22792/2):
>
> Hey, welcome to our forum. You need a custom API endpoint that returns the rendered HTML from the given field. Is there a particular reason you are using a textarea field inside blocks? Here’s an example route that returns the rendered HTML for the given text: 'api' =\> [ 'routes' =\> [ [ 'pattern' =\> 'getRenderedText/pages/(:all)', 'language' =\> '\*', 'method' =\> 'POST', 'action' =\> function ($id) { $id = str\_replace('+', '/', $id); …

---

_[View the full topic](https://forum.getkirby.com/t/preview-of-kirbytext-in-blocks/23057)._
