diff --git a/core/lib/Drupal/Component/Utility/Xss.php b/core/lib/Drupal/Component/Utility/Xss.php index 5fd7c8f..3bde0d0 100644 --- a/core/lib/Drupal/Component/Utility/Xss.php +++ b/core/lib/Drupal/Component/Utility/Xss.php @@ -31,8 +31,8 @@ class Xss { * * This method is preferred to * \Drupal\Component\Utility\SafeMarkup::xssFilter() when the result is - * not being used directly in the rendering system. For example, when its - * result is being combined with other strings before rendering. + * not being used directly in the rendering system (for example, when its + * result is being combined with other strings before rendering). * * This code does four things: * - Removes characters and constructs that can trick browsers. @@ -108,8 +108,8 @@ public static function filter($string, $html_tags = array('a', 'em', 'strong', ' * * This method is preferred to * \Drupal\Component\Utility\SafeMarkup::xssFilterAdmin() when the result is - * not being used directly in the rendering system. For example, when its - * result is being combined with other strings before rendering. + * not being used directly in the rendering system (for example, when its + * result is being combined with other strings before rendering). * * Allows all tags that can be used inside an HTML body, save * for scripts and styles. diff --git a/core/tests/Drupal/Tests/Component/Utility/SafeMarkupTest.php b/core/tests/Drupal/Tests/Component/Utility/SafeMarkupTest.php index 57ef4a1..ff09bc5 100644 --- a/core/tests/Drupal/Tests/Component/Utility/SafeMarkupTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/SafeMarkupTest.php @@ -223,7 +223,7 @@ public function testAdminXss() { // This will strip the tags. $this->assertEquals('text', SafeMarkup::xssFilterAdmin('text')); - // This won't will strip the tags and the string with html will be + // This won't strip the tags and the string with html will be // marked as safe. $filtered = SafeMarkup::xssFilter('text', array('marquee')); $this->assertEquals('text', $filtered); @@ -232,7 +232,7 @@ public function testAdminXss() { $this->assertEquals('text', SafeMarkup::xssFilterAdmin($filtered)); $this->assertEquals('text', SafeMarkup::xssFilter($filtered)); - // This won't will escape the tags. + // This won't escape the tags. $this->assertEquals('text', SafeMarkup::escape($filtered)); }