diff --git a/src/HtmlSanitizer/HtmlSanitizer.cs b/src/HtmlSanitizer/HtmlSanitizer.cs index 5c49d13..f004c79 100644 --- a/src/HtmlSanitizer/HtmlSanitizer.cs +++ b/src/HtmlSanitizer/HtmlSanitizer.cs @@ -432,18 +432,19 @@ namespace Ganss.XSS /// The sanitized HTML body fragment. public string Sanitize(string html, string baseUrl = "", IMarkupFormatter outputFormatter = null) { - var dom = SantizeDom(html, baseUrl); + var dom = SanitizeDom(html, baseUrl); var output = dom.Body.ChildNodes.ToHtml(outputFormatter ?? OutputFormatter); return output; } + /// /// Sanitizes the specified HTML body fragment. If a document is given, only the body part will be returned. /// /// The HTML body fragment to sanitize. /// The base URL relative URLs are resolved against. No resolution if empty. /// The sanitized HTML Document. - public IHtmlDocument SantizeDom(string html, string baseUrl = "") + public IHtmlDocument SanitizeDom(string html, string baseUrl = "") { var parser = HtmlParserFactory(); var dom = parser.Parse(""); diff --git a/src/HtmlSanitizer/IHtmlSanitizer.cs b/src/HtmlSanitizer/IHtmlSanitizer.cs index 18c1e47..ab39b0d 100644 --- a/src/HtmlSanitizer/IHtmlSanitizer.cs +++ b/src/HtmlSanitizer/IHtmlSanitizer.cs @@ -152,7 +152,7 @@ namespace Ganss.XSS /// The HTML body fragment to sanitize. /// The base URL relative URLs are resolved against. No resolution if empty. /// The sanitized HTML Document. - IHtmlDocument SantizeDom(string html, string baseUrl = ""); + IHtmlDocument SanitizeDom(string html, string baseUrl = ""); /// /// Sanitizes the specified HTML document. Even if only a fragment is given, a whole document will be returned.