Meziantou.Framework.Sanitizers namespace

Classes

NameDescription
HtmlSanitizerSanitizes HTML fragments to prevent XSS attacks by removing dangerous elements, attributes, and URLs while preserving safe HTML structure.
UrlSanitizerValidates URLs to prevent XSS attacks by checking for dangerous protocols and patterns.