public static MetaEntry BuildPropertyMetaTag(string metaKey, string propertyType, string value) { var metaEntry = new MetaEntry { Name = metaKey }; metaEntry.SetAttribute("property", propertyType); metaEntry.SetAttribute("content", value); return(metaEntry); }
public override void Process(TagHelperContext context, TagHelperOutput output) { var metaEntry = new MetaEntry(Name, Content, HttpEquiv, Charset); foreach (var attribute in output.Attributes) { if (String.Equals(attribute.Name, "name", StringComparison.OrdinalIgnoreCase)) { continue; } metaEntry.SetAttribute(attribute.Name, attribute.Value.ToString()); } _resourceManager.AppendMeta(metaEntry, Separator ?? ", "); output.TagName = null; }