<div ng-show="plugin.visible"> <button class="btn btn-primary btn-sm pull-right" ng-click="hideContent()"> Hide {{ plugin.name }} </button> <div ng-bind-html="displayedContent"></div> </div> <div ng-hide="plugin.visible"> <button class="btn btn-sm pull-right" bo-class="{ 'btn-warning': plugin.nsfw, 'btn-primary': !plugin.nsfw}" ng-click="showContent()"> Show {{ plugin.name }} </button> </div>