Problem/Motivation

Drupal\Component\Utility\SafeMarkup is deprecated in Drupal 9.

Proposed resolution

Html::escape() should be used instead.

Comments

svenryen created an issue. See original summary.

svenryen’s picture

Here's a patch to resolve the issue.

jkuan’s picture

StatusFileSize
new870 bytes

@svenryen thanks for the patch! However, I also had to include use Drupal\Component\Utility\Html; and remove use Drupal\Component\Utility\SafeMarkup from the code to fully implement the change.

Patch that includes both changes for anyone that wants to use this module for Drupal 9.

jkuan’s picture

Status: Active » Needs review
svenryen’s picture

Thanks for spotting that. I must have been in rush when I made the patch.

gaurav.kapoor’s picture

Status: Needs review » Closed (duplicate)

This has been resolved.