Catton IT 分享
互相分享,相互成長 [如果我從別人身上有所收獲,那我應該再把它跟別人分享]
網頁
Docker
Bot
MongoDB
Xamarin
ASP.Net
MVC
Core
Bootstrap
java script
jQuery
ERP
Flex
作品
首頁
顯示具有
antixss
標籤的文章。
顯示所有文章
顯示具有
antixss
標籤的文章。
顯示所有文章
2016年12月7日 星期三
AntiXss Library for Asp.Net Core
之前在 Asp.Net MVC 5時會使用 微軟的
AntiXSS Library
而在 Core專案的 Library,我有找到一個叫
SmallCode.AspNetCore.AntiXSS
這個 library不只在 controller內使用 HtmlFilter.Instance.SanitizeHtml 方法還在 view有提供 tag helper @Html.Sanitized可以使用。 如果需要的話可以使用 nuget下載使用。
較舊的文章
首頁
訂閱:
文章 (Atom)