Adds client-side validation, additional components and editing in Umbraco to https://github.com/gunndabad/govuk-frontend-aspnetcore
16
stars
1
forks
source link
Umbraco represents rich text as HtmlEncodedString but we use string #337
Closed
sussexrick closed 1 month ago
On a rich text property Umbraco allows you to get the value with:
.GetValue<IHtmlEncodedString>("alias")
.GetValue<string>("alias")
Inspecting the property returned by Umbraco shows that it is an
HtmlEncodedString
.We are using
string
instead in our test mocks, which does not accurately reflect Umbraco's behaviour, which makes code harder to test.