Hi there,
Is there a way to use kirbyText without the formatting? I only want to keep the breaks / new lines, but not the heading, p, …
For example:
“YMMV,
But You Set the Pace”
<h3 class=''><?= $hero->text()->kirbyText(); ?></h3>
Hi there,
Is there a way to use kirbyText without the formatting? I only want to keep the breaks / new lines, but not the heading, p, …
For example:
“YMMV,
But You Set the Pace”
<h3 class=''><?= $hero->text()->kirbyText(); ?></h3>
You need ->kirbytextinline()
method:
<h3><?= $hero->text()->kirbytextinline(); ?></h3>