Example #1
0
        public SanitizerOperation CheckAttribute(HtmlAttribute attribute)
        {
            // Check the url. We assume that there's no use in keeping for example a link tag without a href, so flatten the tag on failure.
            if (!HtmlSanitizer.AttributeUrlCheck(attribute))
            {
                return(SanitizerOperation.FlattenTag);
            }

            return(SanitizerOperation.DoNothing);
        }