Hi! I can’t figure out why the following code outputs editor blocks
as lowercase text instead of keeping the original text formatting.
<meta property='og:description' content="
<?php if($page->intendedTemplate() == "home" && page("biographie")->text()->blocks()->isNotEmpty()): ?>
<?= strip_tags(page("biographie")->text()->blocks()->first()) ?>
<?php endif; ?>
"/>
The editor field’s name is text
.
Thanks for any tips!