XhtmlString.ToString should not require a working PrincipalAccessor

Fixed in

EPiServer.CMS.Core 10.0.1

Created

Aug 22, 2016

Updated

Oct 27, 2016

Area

CMS Core

State

Closed, Fixed and tested


Description

Calling ToString on a XhtmlString invokes the PrincipalAccessor, so a correctly-filtered HTML string is created.

As ToString is often is called when Debugging or from Unit tests asserts, there should be a fallback mechanism in case the PrincipalAccessor cannot produce a value.