I want to display some text in a bootstrap table. The text should get parsed as HTML due to the fact that I need the <br/>-tags to display all the different links below each other. See this Plunker with my code.
As you can see I used the default ng-bind directive as well as the deprecated ng-bind-html but the text either is displayed as plain text or isn´t displayed at all.
Can you guys tell me how to display the text parsed as HTML ?
Here the code for my HTML table:
<table class="table">
<thead>
<tr>
<th>Method</th>
<th>$scope.other</th>
<th>$scope.links</th>
</tr>
</thead>
<tbody>
<tr>
<td>ng-bind</td>
<td>{{other}}</td>
<td>{{links}}</td>
</tr>
<tr>
<td>ng-bind-html</td>
<td ng-bind-html="other"></td>
<td ng-bind-html="links"></td>
</tr>
</tbody>
</table>
The matching controller:
app.controller('TestController', function($scope){
$scope.links = 'https://www.google.com <br/> https://angularjs.org/ <br/> \
https://www.google.com <br/> https://angularjs.org/ <br/> \
https://www.google.com <br/> https://angularjs.org/ <br/>';
$scope.other = "sample Text";
});