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.
Currently in references_dialog_entityreference_link_helper() $label is being passed into t('Create @type', array('@type' => $label)) with the "@" which causes $label to run through check_plain() twice since the $label received from from entityInfo() has already been translated (which also runs through check_plain()).
Example:
With "@": "It's a content type label"
With "!": "It's a content type label"
Comment | File | Size | Author |
---|---|---|---|
#2 | references_dialog-fix_label_double_escaping-2530692-2.patch | 800 bytes | maximpodorov |
| |||
#1 | 2530692-0-reference_dialog-double_escaped_label.patch | 532 bytes | grndlvl |
Comments
Comment #1
grndlvl CreditAttribution: grndlvl commentedComment #2
maximpodorov CreditAttribution: maximpodorov commentedAn alternating solution is to mark links as containing HTML titles.