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 @@ -733,11 +733,11 @@ */ public function testOverviewLinks() { $this->drupalLogin($this->adminUser); - $this->generateLogEntries(1, ['message' => "<script>alert('foo');</script>hello world"]); + $this->generateLogEntries(1, ['message' => "<script>alert('foo');</script>Lorem ipsum dolor sit amet, consectetur adipiscing elit."]); $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;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Entry #0"><script>alert('foo');</script>Lorem ipsum dolor sit…'); } }