aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/class/element.php5
-rw-r--r--app/class/modelrender.php1
2 files changed, 6 insertions, 0 deletions
diff --git a/app/class/element.php b/app/class/element.php
index fd8ac71..1a801e4 100644
--- a/app/class/element.php
+++ b/app/class/element.php
@@ -89,6 +89,11 @@ class Element
}
}
+ public function addtags()
+ {
+ $this->content = PHP_EOL . '<' . $this->type() . '>' . PHP_EOL . $this->content() . PHP_EOL . '</' . $this->type() . '>' . PHP_EOL;
+ }
+
diff --git a/app/class/modelrender.php b/app/class/modelrender.php
index 608960a..3d41fa7 100644
--- a/app/class/modelrender.php
+++ b/app/class/modelrender.php
@@ -98,6 +98,7 @@ class Modelrender extends Modelart
$element = new Element($match, $this->art->id());
$element->setcontent($this->getelementcontent($element));
$element->setcontent($this->elementparser($element));
+ $element->addtags();
$body = str_replace($element->fullmatch(), $element->content(), $body);
}