C
C#15mo ago
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?
No description
No description
No description
No description
No description
2 Replies
gaben
gabenOP15mo ago
(the second to last image is what shows up in the browser) Looks like the htmlencode is actually breaking it, I took that out and now it's working.
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?