Commit 606027c7 authored by Rob Phillips's avatar Rob Phillips
Browse files

Issue #3324151 by robphillips: Allow safe HTML in delete confirmation message.

parent 6c424c4d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
namespace Drupal\comment_delete;

use Drupal\comment\CommentInterface;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Database\Connection;
use Drupal\Core\Entity\EntityFieldManagerInterface;
@@ -126,7 +127,7 @@ class CommentDeleteManager implements CommentDeleteManagerInterface {
    }

    if (trim($this->config['message'][$op])) {
      $this->messenger->addStatus(Xss::filterAdmin($this->config['message'][$op]));
      $this->messenger->addStatus(new FormattableMarkup(Xss::filterAdmin($this->config['message'][$op]), []));
    }
  }