From bf57f3dcba5864b63882c273d25403c28637eeab Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 21 Jun 2021 18:36:31 +0200 Subject: Use function parseContentTags --- core/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/functions.php b/core/functions.php index 98c99c3..3a3dbdf 100644 --- a/core/functions.php +++ b/core/functions.php @@ -78,6 +78,8 @@ function generateItemTemplateData(Item $Item): array { $ATTR = $Item->getAttribute()->getAll(['password']); $ATTR = array_change_key_case($ATTR, CASE_UPPER); + $preparsed = parseContentTags($Item->attr('body')); + return [ 'URL' => Application::getEntityURL($Item), 'GUID' => generatePseudoGUID($Item), @@ -94,7 +96,7 @@ function generateItemTemplateData(Item $Item): array { 'BODY' => [ 'TEXT' => function() use($Item) { - return $Item->getBody(); + return $preparsed; }, 'HTML' => function() use($Item) { return $Item->getHTML(); -- cgit v1.2.3