The Wayback Machine - https://web.archive.org/web/20220211133809/https://github.com/dotnet/aspnetcore/issues/40141
Skip to content
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

MarkupString not working and encode character & #40141

Open
1 task done
WinnetouP opened this issue Feb 11, 2022 · 0 comments
Open
1 task done

MarkupString not working and encode character & #40141

WinnetouP opened this issue Feb 11, 2022 · 0 comments

Comments

@WinnetouP
Copy link

@WinnetouP WinnetouP commented Feb 11, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I want to obtain an URL with & character but after the last update of visual studio (february 2022) all & characters is always converted to &
I tested with a simple string, it's converted
I tested with a MarkupString, it's converted also and it's not good because normally MarkupString must keep what I provided into a string

Expected Behavior

No response

Steps To Reproduce

<img src="@ImageUrl" /> @code { private MarkupString ImageUrl = new MarkupString("https://xxxx/yyyy?field1=x&field2=y"); }

Exceptions (if any)

No response

.NET Version

6.0.102

Anything else?

Microsoft.AspNetCore.App 6.0.2

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

Successfully merging a pull request may close this issue.

None yet
1 participant