我有一個包含HTML的字段。當我使用{{field}}顯示時,不會呈現html。如何將字段顯示爲呈現的html? customForm.Description包含HTML:每個請求Angularjs顯示字段爲html
<h4>Work Requests</h4>
<div ng-repeat="customForms in customFormGroups" class="row">
<div ng-repeat="customForm in customForms" class="col-sm-4">
<strong>{{customForm.Name}}</strong>
<p>{{customForm.Description}}</p>
<div class="form-group">
<a class="btn btn-primary" href="javascript:void(0);" ng-click="selectService(customForm)">Select</a>
</div>
</div>
</div>
參見:HTTP: //stackoverflow.com/questions/18340872/how-do-you-use-sce-trustashtmlstring-to-replicate-ng-bind-html-unsafe-in-angu – tymeJV