Sanitizes HTML to some of the most of
public static string SanitizeHtml(string html, string htmlTagBlacklist)
Return Value
Sanitized HTML
Parameters
html
input html
htmlTagBlacklist
A list of HTML tags that are stripped.
Remarks
This provides rudimentary HTML sanitation catching the most obvious XSS script attack vectors. For mroe complete HTML Sanitation please look into a dedicated HTML Sanitizer.
See also:
Class HtmlUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic