Пример #1
0
        public virtual AntiySamyResult Scan(string taintedHtml, string filename)
        {
            Policy policy = Policy.FromFile(filename);

            var antiSamy = new AntiSamyDomScanner(policy);

            return(antiSamy.Scan(taintedHtml));
        }
Пример #2
0
        public virtual AntiySamyResult Scan(string taintedHtml, Policy policy)
        {
            var antiSamy = new AntiSamyDomScanner(policy);

            return(antiSamy.Scan(taintedHtml));
        }