Skipping unknown tags in mime visitor.
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user