Skipping unknown tags in mime visitor.

This commit is contained in:
Burak Kaan Köse
2024-09-19 01:16:42 +02:00
parent e628a98cb8
commit e0d99257fe

View File

@@ -185,8 +185,15 @@ namespace Wino.Core.Mime
} }
else else
{ {
// pass the tag through to the output if (ctx.TagId == HtmlTagId.Unknown)
ctx.WriteTag(htmlWriter, true); {
ctx.DeleteTag = true;
ctx.DeleteEndTag = true;
}
else
{
ctx.WriteTag(htmlWriter, true);
}
} }
} }