© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
gaben

❔ Blazor - MarkupString rendering <img> tag w/ base64 image encoding as text

As can be seen in the dev tools, there are quotation marks around the <img> tag when rendered in-browser. I checked HttpUtility.HtmlEncode and it's not adding the quotes, so I think the MarkupString is. Does anyone know how to fix this?
image.png
image.png
image.png
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

base64 encoding csv string
C#CC# / help
2y ago
Display base64 img on Razor page
C#CC# / help
4y ago
Blazor Components not rendering
C#CC# / help
4y ago
✅ Blazor as desktop
C#CC# / help
4y ago