HtmlTags/htmltags

How to parse MVCHtmlString or String into HTML Tag

Closed this issue · 1 comments

I am trying to use HtmlTags to write a wrapper around some MVC Extension methods. For this I need to generate a HtmlTag from MVCHtmlString and then add some attributes on top of it. In the current version, I cannot find a way to create a HtmlTag from String.

Can you please guide me if it is possible and what is the right way to do it?

You don't do this. You create MVCHtmlStrings from HtmlTags but not the
reverse. This is because one is just a string and the other is a rich
object. HtmlTags does not have any facility to parse arbitrary HTML into a
tag object.

On Monday, January 11, 2016, syed-afraz-ali notifications@github.com
wrote:

I am trying to use HtmlTags to write a wrapper around some MVC Extension
methods For this I need to generate a HtmlTag from MVCHtmlString and then
add some attributes on top of it In the current version, I cannot find a
way to create a HtmlTag from String

Can you please guide me if it is possible and what is the right way to do
it?


Reply to this email directly or view it on GitHub
#65.