-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Blazor , RenderFragment to Raw Html string #9493
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
Comments
This isn’t a feature we’re currently planning to have. It would involve having a new way of turning render trees into strings. Bear in mind that render output is not a string for Blazor - it’s a structured tree of elements and attributes. If this becomes a highly requested feature we’d certainly consider adding infrastructure for this, but if not then we have more highly prioritised things to work on. Hope that makes sense. Also in general it’s hard to see what the use cases would be for this. |
@SteveSandersonMS most use cases when dynamically building view with integration with 3rd party JS libraries , when u simply want to send raw HTML to be inserted as a popup for a marker in map library when already u have ur own library of building blazor component dynamically ;) thanks |
Because you might want to inspect the contents of a render fragment. I think as Blazor gets more attention, this is going to be a feature people want... Can you at least document how the |
as the question title says
can you add the ability to get raw html from RenderFragment?
maybe something like this
RenderFragment renderFragment; renderFragment.ToRawHtml()
or
property
saving the rawHtml generated by therenderFragment
object ?with events and everything...
for code-behind purposes
Thanks
The text was updated successfully, but these errors were encountered: