diff options
Diffstat (limited to 'core/functions.php')
-rw-r--r-- | core/functions.php | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |