diff -u b/core/modules/dblog/src/Tests/DbLogTest.php b/core/modules/dblog/src/Tests/DbLogTest.php --- b/core/modules/dblog/src/Tests/DbLogTest.php +++ b/core/modules/dblog/src/Tests/DbLogTest.php @@ -737,7 +737,7 @@ $this->drupalGet('admin/reports/dblog'); $this->assertResponse(200); // Make sure HTML tags are filtered out. - $this->assertRaw('title="&lt;script&gt;alert(\'foo\');&lt;/script&gt;hello world Entry #0"><script>alert(\'foo\');</script>hello world Entry #0'); + $this->assertRaw('title="&lt;script&gt;alert('foo');&lt;/script&gt;hello world Entry #0"><script>alert('foo');</script>hello world Entry #0'); } }