EmailTagHelper.cs: context.GetChildContentAsync() => output.GetChildContentAsync()

pull/1236/head
Robert Haken 2016-05-18 13:05:37 +02:00 committed by danroth27
parent 1aa1fcb8d3
commit b1d63f0983
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace AuthoringTagHelpers.TagHelpers3
public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output) public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
{ {
output.TagName = "a"; // Replaces <email> with <a> tag output.TagName = "a"; // Replaces <email> with <a> tag
var content = await context.GetChildContentAsync(); var content = await output.GetChildContentAsync();
var target = content.GetContent() + "@" + EmailDomain; var target = content.GetContent() + "@" + EmailDomain;
output.Attributes["href"] = "mailto:" + target; output.Attributes["href"] = "mailto:" + target;
output.Content.SetContent(target); output.Content.SetContent(target);