Including description_html and description_plain in the Local Packages

This commit is contained in:
Djamil Legato
2014-10-06 14:58:33 -07:00
parent a58ea17867
commit fd7fd2fb0c

View File

@@ -28,7 +28,10 @@ class Package
$this->blueprints = $this->data->blueprints();
if ($package_type) {
$html_description = \Parsedown::instance()->line($this->blueprints->get('description'));
$this->blueprints->set('package_type', $package_type);
$this->blueprints->set('description_html', $html_description);
$this->blueprints->set('description_plain', strip_tags($html_description));
}
}