Ejemplo n.º 1
0
        public virtual AntiySamyResult Scan(string taintedHtml, string filename)
        {
            Policy policy = Policy.FromFile(filename);

            var antiSamy = new AntiSamyDomScanner(policy);

            return(antiSamy.Scan(taintedHtml));
        }
Ejemplo n.º 2
0
        public virtual AntiySamyResult Scan(string taintedHtml, Policy policy)
        {
            var antiSamy = new AntiSamyDomScanner(policy);

            return(antiSamy.Scan(taintedHtml));
        }