示例#1
0
 /// <summary>
 /// Set the origin html string safty
 /// </summary>
 /// <param name="originHtmlString"></param>
 /// <param name="policyName"></param>
 /// <returns></returns>
 public static string ToSafeHtmlString(this string originHtmlString, string policyName)
 => AntiXssSanitizer.Sanitize(originHtmlString, policyName);
示例#2
0
 /// <summary>
 /// Set the origin html string safty
 /// </summary>
 /// <param name="originHtmlString"></param>
 /// <param name="policy"></param>
 /// <returns></returns>
 public static string ToSafeHtmlString(this string originHtmlString, AntiXssPolicy policy)
 => AntiXssSanitizer.Sanitize(originHtmlString, policy);
示例#3
0
 /// <summary>
 /// Set the origin html string safty
 /// </summary>
 /// <param name="originHtmlString"></param>
 /// <returns></returns>
 public static string ToSafeHtmlString(this string originHtmlString)
 => AntiXssSanitizer.Sanitize(originHtmlString);