There is no way to render HTML using Directive?
When we use Interactivity API for block and if we want to display html content inside data-wp-each we can't display our html contnet using any directive.
In the below sample code, I want to render html for class="step-text"
Sample code:
<template data-wp-each--step="context.steps">
<div class="step-card" data-wp-bind--data-index="context.step.index" data-wp-class--show="state.showStep">
<div data-wp-text="context.step.step"></div>
<div class="step-text" data-wp-text="context.step.description"></div>
</div>
</template>
What is your proposed solution?
We should have directive like data-wp-html
There is no way to render HTML using Directive?
When we use Interactivity API for block and if we want to display html content inside
data-wp-eachwe can't display our html contnet using any directive.In the below sample code, I want to render html for class="step-text"
Sample code:
What is your proposed solution?
We should have directive like
data-wp-html