C# Class MovingScrewdriver.Web.Infrastructure.AutoMapper.Resolvers.SanitizeHtml

ファイルを表示 Open project: Gutek/MovingScrewdriver

Public Methods

Method Description
Sanitize ( string html ) : string

sanitize any potentially dangerous tags from the provided raw HTML input using a whitelist based approach, leaving the "safe" HTML tags

Method Details

Sanitize() public static method

sanitize any potentially dangerous tags from the provided raw HTML input using a whitelist based approach, leaving the "safe" HTML tags
public static Sanitize ( string html ) : string
html string
return string