diff --git a/core/modules/views/src/Plugin/views/area/Result.php b/core/modules/views/src/Plugin/views/area/Result.php
index 3079f0d..5257e10 100644
--- a/core/modules/views/src/Plugin/views/area/Result.php
+++ b/core/modules/views/src/Plugin/views/area/Result.php
@@ -111,7 +111,7 @@ public function render($empty = FALSE) {
     }
     // Send the output.
     if (!empty($total)) {
-      $output .= Xss::filterAdmin(str_replace(array_keys($replacements), array_values($replacements), $format));
+      $output .= str_replace(array_keys($replacements), array_values($replacements), $format);
     }
     // Return as render array.
     return array(
diff --git a/core/modules/views/src/Tests/Handler/AreaResultTest.php b/core/modules/views/src/Tests/Handler/AreaResultTest.php
new file mode 100644
index 0000000..2e9d28a
--- /dev/null
+++ b/core/modules/views/src/Tests/Handler/AreaResultTest.php
@@ -0,0 +1,42 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\views\Tests\Handler\AreaResultTest.
+ */
+
+namespace Drupal\views\Tests\Handler;
+
+use Drupal\views\Tests\ViewKernelTestBase;
+use Drupal\views\Views;
+
+/**
+ * Tests the Views Area Result class.
+ *
+ * @group views
+ * @see \Drupal\views\Plugin\views\area\Result
+ */
+class AreaResultTest extends ViewKernelTestBase {
+  /**
+   * Views used by this test.
+   *
+   * @var array
+   */
+  public static $testViews = array('test_area_result');
+
+  public function testAreaResult() {
+    $view = Views::getView('test_area_result');
+    $this->executeView($view);
+
+    $handler = $view->display_handler->handlers['header']['result'];
+    $render = $handler->render();
+
+    $renderer = $this->container->get('renderer');
+    $output = $renderer->renderRoot($render);
+
+    // Expect the script tag to be stripped.
+    $expected = "<a>A</a>";
+    $this->assertEqual($expected, $output);
+  }
+
+}
diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_result.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_result.yml
new file mode 100644
index 0000000..3081738
--- /dev/null
+++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_result.yml
@@ -0,0 +1,39 @@
+langcode: en
+status: true
+dependencies: {  }
+id: test_area_result
+label: ''
+module: views
+description: ''
+tag: ''
+base_table: views_test_data
+base_field: id
+core: 8.x
+display:
+  default:
+    display_options:
+      pager:
+        options:
+          offset: 0
+        type: none
+      fields:
+        id:
+          field: id
+          id: id
+          relationship: none
+          table: views_test_data
+          plugin_id: numeric
+      header:
+        result:
+          id: result
+          table: views
+          field: result
+          relationship: none
+          group_type: group
+          admin_label: ''
+          empty: false
+          content: '<script /><a>A</a>'
+          plugin_id: result
+    display_plugin: default
+    display_title: Master
+    position: 0
