Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9c81dc77cf8d16bb1161bebc143ee94dbea52cf0 1 parent 39270d8
@ppetermann ppetermann authored
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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.