Skip to content
Browse files

enable some of the "html" ccp embeds into item descriptions (...)

  • Loading branch information...
1 parent 39270d8 commit 9c81dc77cf8d16bb1161bebc143ee94dbea52cf0 @ppetermann ppetermann committed Jan 14, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Kingboard/Views/EveInfo.php
  2. +1 −1 templates/eve_item.html
View
2 src/Kingboard/Views/EveInfo.php
@@ -20,7 +20,7 @@ public function eveItem(array $data)
$attributes[$attribute['categoryName']][] = $attribute;
}
$context['item']['Attributes'] = $attributes;
-
+ $context['item']['description'] = strip_tags($context['item']['description'], "<br><br/><b><i>");
return $this->render('eve_item.html', $context);
}
}
View
2 templates/eve_item.html
@@ -16,7 +16,7 @@
</div>
<div class="span14">
<h2>Description</h2>
- {{ item.description }}
+ {{ item.description|raw|nl2br }}
<h2>Attributes</h2>
<div class="row">
{% for category, attributes in item.Attributes %}

0 comments on commit 9c81dc7

Please sign in to comment.
Something went wrong with that request. Please try again.