Activity: Replacing Email Tag Helpers

Scenario

You're maintaining an application for your company. The company wants to get rid of all the email Tag Helpers from the code. How will you do it?

Aim

Replace the EmailTagHelper so that we can use it like the following:

<email> mugil@greatestretailstore.com </email>

Steps for completion

Use the following code:


Go to https://goo.gl/VCdwpB to access the code.
We can still use HTML attributes on Tag Helpers, as in:
<email style="color:red" mailTo="mugil@greatestretailstore.com"></email>
This will render the link in red.
public class EmailTagHelper : TagHelper
{
public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
...
...
}