Hide HTML tags in panel preview of custom block

You can use a writer field in the Vue component. Have a look at the default text block’s Vue component: text | Kirby

<template>
  <k-writer
    v-for="item in content.accordion"
    :value="item.details"
  />
</template>

This will probably not work but you get the idea.

Alternatively you can use the v-html attribute:

<template>
  <details v-for="item in content.accordion">
    <div v-html="item.details"></div>
  </details>
</template>
1 Like