As this SafeMarkup::checkPlain is deprecated this is now replaced with Html::escape().
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Safe...
quick note : This is 8.x code and SafeMarkup::checkPlain is only deprecating in 9.x.

Comments

Pradnya Pingat created an issue. See original summary.

Pradnya Pingat’s picture

Assigned: Pradnya Pingat » Unassigned
Status: Active » Needs review
StatusFileSize
new962 bytes

Please find the patch attached.

  • 2332a95 committed on 8.x-1.x
    Issue #2801105 by Pradnya Pingat: Removed deprecated usage of SafeMarkup...
jepster_’s picture

Status: Needs review » Closed (fixed)

Thanks. I have applied your changes.