2016年1月21日 星期四

angularjs 正確顯示 html

javascript
====
controller 注入 $sce
透過 $sce.trustAsHtml() 得到可以正確顯示的內容

html
====
<span ng-bind-html='content'></span>

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...