diff --git a/core/modules/help/lib/Drupal/help/Controller/HelpController.php b/core/modules/help/lib/Drupal/help/Controller/HelpController.php
index e41e6d5a56d7e9e28966e28754a3da1898291537..7aac8262fe60964145f66435b6ea34dc406e6faa 100644
--- a/core/modules/help/lib/Drupal/help/Controller/HelpController.php
+++ b/core/modules/help/lib/Drupal/help/Controller/HelpController.php
@@ -10,6 +10,7 @@
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
+use Drupal\Component\Utility\String;
 
 /**
  * Controller routines for help routes.
@@ -106,7 +107,7 @@ public function helpPage($name) {
     $build = array();
     if ($this->moduleHandler->implementsHook($name, 'help')) {
       $info = system_get_info('module');
-      drupal_set_title($info[$name]['name']);
+      $build['#title'] = String::checkPlain($info[$name]['name']);
 
       $temp = $this->moduleHandler->invoke($name, 'help', array("admin/help#$name", drupal_help_arg()));
       if (empty($temp)) {