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.
Howdy...
Just a heads up that l() actually does a check_plain() on its own for link text. So when the title is encoded before sending it in you end up with some funky encoding for things like "Terms & Conditions" where the ampersand is double encoded.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#2 | 421346.patch | 620 bytes | roychri |
Comments
Comment #1
Chill35 CreditAttribution: Chill35 commentedThanks Moonshine! I will fix this.
:)
Comment #2
roychri CreditAttribution: roychri commentedHere's the patch for 1.10
Comment #3
DeFr CreditAttribution: DeFr commentedVery simple patch, works as advertised and badly needed in case you have something that check_plain converts to an entity in the link label, otherwise the double escaping makes the entity visible (such as ' which is in the default fr.po) .
Thanks @roychri
Comment #4
Kars-T CreditAttribution: Kars-T commented#421346 by roychri | Chill35: Fixed Double encoding on @link.