If run HtmlAgilityPackSanitizerProvider with tag "br" in white list throws an exception. (Because tag.Value in BR tag is NULL)
To resolve this error need to check if null in attributes.
After
foreach (HtmlAttribute a in attr)
{
Add
if(tag.Value == null)
continue;
Comments: My fail... replace to ``` if (tag.Value != null && !tag.Value.Contains(a.Name)) ```
To resolve this error need to check if null in attributes.
After
foreach (HtmlAttribute a in attr)
{
Add
if(tag.Value == null)
continue;
Comments: My fail... replace to ``` if (tag.Value != null && !tag.Value.Contains(a.Name)) ```