Fixes the test for expression escaping on IE8.

Now trailing white spaces are removed since they are not relevant for content comparison.

Those white spaces were appearing on Internet Explorer 8 after the template file associated to the test has been reformatted.