diff --git a/core/modules/aggregator/src/Tests/AddFeedTest.php b/core/modules/aggregator/src/Tests/AddFeedTest.php index b66ac55..ef70cd1 100644 --- a/core/modules/aggregator/src/Tests/AddFeedTest.php +++ b/core/modules/aggregator/src/Tests/AddFeedTest.php @@ -59,7 +59,7 @@ public function testFeedLabelEscaping() { $this->assertEqual((string) $result[0], 'Test feed title alert(123);'); // Ensure the feed icon title is escaped. - $this->assertRaw('class="feed-icon"> Subscribe to Test feed title <script>alert(123);</script> feed'); + $this->assertTrue(strpos(str_replace(["\n", "\r"], '', $this->getRawContent()), 'class="feed-icon"> Subscribe to Test feed title <script>alert(123);</script> feed') !== FALSE); } /**