The library that is used to calculate the Html diff is quite lenient with respect to the character "encoding". The following characters and character references:
' ' '
Are considered to be equal when calculating and displaying a diff, which is afaik desired behavior. Have added a unit test to capture this.