-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
Trying to escape @ in razor's html attribute results in two @@ being written. Using single @ doesn't work either, because it switches back to C# context.
Example
@{
string domain = "com";
}
<author mail-domain="@@company.@domain">John Freyman</author>Expected
<author mail-domain="@company.com">John Freyman</author>Actual
<author mail-domain="@@company.com">John Freyman</author>Workaround
@{
string domain = "com";
}
<author mail-domain="@("@")company.@domain">John Freyman</author>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.