private static void WriteEntity(char c, HtmlEntity entity, TextWriter writer) { writer.Write(HtmlEncodingServices.EntityStartChar); if(entity.WriteAsDecimal) { WriteDecimalEntity(c, writer); } else { WriteTextEntity(entity, writer); } writer.Write(HtmlEncodingServices.EntityEndChar); }
private static void WriteTextEntity(HtmlEntity entity, TextWriter writer) { writer.Write(entity.Entity); }