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.
The fix from https://www.drupal.org/node/2757739 has some unintended consequences.
If you do not have a format on your title replacement field, the title will get run through check_markup() with plain_text format applied. If you have Convert line breaks into HTML turned on, your title will now get returned wrapped in p tags.
Comment | File | Size | Author |
---|---|---|---|
#2 | title_token_replace_no_format-2875019-2.patch | 866 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous at Cheeky Monkey Media commentedrsmylski created an issue. See original summary.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous at Cheeky Monkey Media commentedThe attached patch will use check_plain() if no format exists, but will continue to call check_markup() if there is a format.
Comment #3
glynster CreditAttribution: glynster commented@rsmylski this is a perfect fix. +1 RTBC. Is absolutely needed!
Comment #4
alex_optim+1
Comment #5
pifagorComment #7
pifagorComment #8
glynster CreditAttribution: glynster commentedThanks so much for the commit! I have noticed one residual tweak that I think needs adding. HTML Entities are rendering as their code as well
' -> ’