public static void Main()
var dirtyHtml = @"<p><img src=""./x.jpg""></p>"
+ @"<p><img src=""./y.jpg""></p>"
+ @"<svg viewBox=""0 0 120 120"" xmlns=""http://www.w3.org/2000/svg""><rect x=""10"" y=""10"" width=""100"" height=""100"" rx=""15""/></svg>"
+ @"<p><img src=""./z.jpg""></p>"
var sanitizer = HtmlSanitizer.SimpleHtml5Sanitizer();
sanitizer.Tag("svg").AllowAttributes("viewBox").AllowAttributes("xmlns");
sanitizer.Tag("rect").AllowAttributes("x").AllowAttributes("y").AllowAttributes("width").AllowAttributes("height").AllowAttributes("rx");
var cleanHtml = sanitizer.Sanitize(dirtyHtml);
Console.WriteLine(cleanHtml);