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
There is auto-escaping issues while editing node translation (#2394951: Page title escaped with HTML markup when editing content translation). I saw that the <em>
tags are embedded inside t()
in NodeTranslationHandler.php
. We should use placeholder formatters rather than hardcoding HTML tags.
Proposed resolution
Use placeholder string formatters for t()
rather than hardcoding <em>
tags.
Remaining tasks
N/A
User interface changes
N/A
API changes
entityFormTitle()
in NodeTranslationHandler.php
will return safe markup emphasized title.
Comments
Comment #1
subhojit777Comment #2
jhodgdonThis should just be fixed on the parent issue. It is, in fact, one of the main causes of the parent issue and does not need to be a separate issue.