Skip to content

Commit

Permalink
enable some of the "html" ccp embeds into item descriptions (...)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppetermann committed Jan 14, 2013
1 parent 39270d8 commit 9c81dc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Kingboard/Views/EveInfo.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function eveItem(array $data)
$attributes[$attribute['categoryName']][] = $attribute; $attributes[$attribute['categoryName']][] = $attribute;
} }
$context['item']['Attributes'] = $attributes; $context['item']['Attributes'] = $attributes;

$context['item']['description'] = strip_tags($context['item']['description'], "<br><br/><b><i>");
return $this->render('eve_item.html', $context); return $this->render('eve_item.html', $context);
} }
} }
2 changes: 1 addition & 1 deletion templates/eve_item.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>EVE Item Information <small>{{item.typeName}}</small></h1>
</div> </div>
<div class="span14"> <div class="span14">
<h2>Description</h2> <h2>Description</h2>
{{ item.description }} {{ item.description|raw|nl2br }}
<h2>Attributes</h2> <h2>Attributes</h2>
<div class="row"> <div class="row">
{% for category, attributes in item.Attributes %} {% for category, attributes in item.Attributes %}
Expand Down

0 comments on commit 9c81dc7

Please sign in to comment.