aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-21 18:36:31 +0200
committerThomas Lange <code@nerdmind.de>2021-06-21 18:36:31 +0200
commitbf57f3dcba5864b63882c273d25403c28637eeab (patch)
tree46282c6440c6724c1ca780d6f7d277370f66a1ff /core
parentbb9f45b1153d82359fef052a0a04147d4b794704 (diff)
downloadblog-bf57f3dcba5864b63882c273d25403c28637eeab.tar.gz
blog-bf57f3dcba5864b63882c273d25403c28637eeab.tar.xz
blog-bf57f3dcba5864b63882c273d25403c28637eeab.zip
Use function parseContentTags
Diffstat (limited to 'core')
-rw-r--r--core/functions.php4
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();