Example #1
0
 private string UpdateLanguage(ParserContext context, HtmlNode elementNode)
 {
     var language = string.IsNullOrEmpty(elementNode.GetLanguage())
                        ? context.Language
                        : elementNode.GetLanguage();
     context.Language = language;
     return language;
 }