Skip to content

Usage In Blazor #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jameswoodley opened this issue Sep 17, 2020 · 1 comment
Open

Usage In Blazor #117

jameswoodley opened this issue Sep 17, 2020 · 1 comment

Comments

@jameswoodley
Copy link

I have an HTML string that's being returned via an API call in Blazor. I'd love to use HtmlTags to then display these in my Blazor component. Is this possible? Currently I have

@foreach (var element in _form.Elements)
{
   var htmlElement = new HtmlTag(element.Html);
   <what do I put here to render it?>
}

I'm not sure how to get that element rendered?

@jbogard
Copy link
Contributor

jbogard commented Jan 4, 2021

HtmlTags implement IHtmlContent which Razor uses to render - is there an equivalent in Blazor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants