Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
HEAD:
$build['#configuration']['label'] = SafeMarkup::checkPlain($configuration['label']);
@dawehner asked in #2543340-25: Convert BlockViewBuilder to use #lazy_builder (but don't yet let context-aware blocks be placeholdered):
So why do we still need that escaping? Don't we have autoescaping now? Can we have a follow up for that? Please also add a todo
Proposed resolution
Remove it.
Remaining tasks
Do it.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
alexpottI think this could/should be a dupe of #2545972: Remove all code usages SafeMarkup::checkPlain() and rely more on Twig autoescaping
Comment #3
alexpottComment #4
lauriiiDuplicate of #2560641: Remove all usages SafeMarkup::checkPlain() from render arrays