U4-2119 - Encoding in anchors

Created by Marek 16 Apr 2013, 12:44:28 Updated by Sebastiaan Janssen 21 Apr 2013, 10:48:46

Consider this razor macro: @{ string email = "test@test.com"; //test@test.com } @Html.Raw(email) The following invalid output for "href" value is produced: test@test.com

Comments

Sebastiaan Janssen 21 Apr 2013, 10:48:17

Unfortunately there's nothing we can do, this was introduced in the newer version of Razor, some workarounds listed here: http://stackoverflow.com/questions/11963453/why-is-html-raw-escaping-ampersand-in-anchor-tag-in-asp-net-mvc-4


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.0, 6.0.1, 6.0.2, 6.0.3

Due in version:

Sprint:

Story Points:

Cycle: