diff --git a/core/modules/filter/src/Plugin/Filter/FilterHtml.php b/core/modules/filter/src/Plugin/Filter/FilterHtml.php
index b76933e..9ddfcdb 100644
--- a/core/modules/filter/src/Plugin/Filter/FilterHtml.php
+++ b/core/modules/filter/src/Plugin/Filter/FilterHtml.php
@@ -11,6 +11,7 @@
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\filter\FilterProcessResult;
 use Drupal\filter\Plugin\FilterBase;
+use Drupal\Component\Utility\SafeMarkup;
 
 /**
  * Provides a filter to limit allowed HTML tags.
@@ -94,7 +95,7 @@ public function tips($long = FALSE) {
       return $output;
     }
 
-    $output = '<p>' . $output . '</p>';
+    $output = SafeMarkup::set('<p>' . $output . '</p>');
     if (!$this->settings['filter_html_help']) {
       return $output;
     }
@@ -144,8 +145,8 @@ public function tips($long = FALSE) {
       if (!empty($tips[$tag])) {
         $rows[] = array(
           array('data' => $tips[$tag][0], 'class' => array('description')),
-          array('data' => '<code>' . String::checkPlain($tips[$tag][1]) . '</code>', 'class' => array('type')),
-          array('data' => $tips[$tag][1], 'class' => array('get'))
+          array('data' => SafeMarkup::set('<code>' . String::checkPlain($tips[$tag][1]) . '</code>'), 'class' => array('type')),
+          array('data' => SafeMarkup::set($tips[$tag][1]), 'class' => array('get'))
         );
       }
       else {
@@ -175,8 +176,8 @@ public function tips($long = FALSE) {
     foreach ($entities as $entity) {
       $rows[] = array(
         array('data' => $entity[0], 'class' => array('description')),
-        array('data' => '<code>' . String::checkPlain($entity[1]) . '</code>', 'class' => array('type')),
-        array('data' => $entity[1], 'class' => array('get'))
+        array('data' => SafeMarkup::set('<code>' . String::checkPlain($entity[1]) . '</code>'), 'class' => array('type')),
+        array('data' => SafeMarkup::set($entity[1]), 'class' => array('get'))
       );
     }
     $table = array(
@@ -185,7 +186,7 @@ public function tips($long = FALSE) {
       '#rows' => $rows,
     );
     $output .= drupal_render($table);
-    return $output;
+    return SafeMarkup::set($output);
   }
 
 }
