summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-08-17 10:52:09 (GMT)
committerAlex Pott2015-08-17 10:52:09 (GMT)
commita8f6641a305b0b4b5b8d4977c95a37a0b6aa1531 (patch)
tree09baa2d034884f8ef5ced86ddf36741df594fe3c
parenta5bfd122e1b6dd284e54cb2ce9fd42cccf8db5a5 (diff)
Issue #2550945 followup by mbovan: Add Html::escape()
-rw-r--r--core/lib/Drupal/Core/Render/Element/HtmlTag.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/lib/Drupal/Core/Render/Element/HtmlTag.php b/core/lib/Drupal/Core/Render/Element/HtmlTag.php
index b78b00a..8a96311 100644
--- a/core/lib/Drupal/Core/Render/Element/HtmlTag.php
+++ b/core/lib/Drupal/Core/Render/Element/HtmlTag.php
@@ -7,7 +7,7 @@
namespace Drupal\Core\Render\Element;
-use Drupal\Component\Utility\Html;
+use Drupal\Component\Utility\Html as HtmlUtility;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Render\SafeString;
use Drupal\Component\Utility\Xss;
@@ -79,7 +79,7 @@ class HtmlTag extends RenderElement {
// An HTML tag should not contain any special characters. Escape them to
// ensure this cannot be abused.
- $escaped_tag = Html::escape($element['#tag']);
+ $escaped_tag = HtmlUtility::escape($element['#tag']);
$markup = '<' . $escaped_tag . $attributes;
// Construct a void element.
if (in_array($element['#tag'], self::$voidElements)) {