The use of the t() function on line 83 of /src/Plugin/Field/FieldFormatter/ViewsReferenceFieldFormatter.php is causing the double escaping of special characters such as &.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | double_epscaping_special_characters_bug-2838413-4.patch | 711 bytes | joekers |
Comments
Comment #2
NewZeal commentedAre you referring to the title as follows?:
It's probably the @ which is cleaning out the ampersand. I'll change to ! in the next release and we can see if that helps.
Comment #3
znak commentedPatch for your module
Comment #4
joekersThanks for your patch but it looks like the "!" placeholder has now been removed so we get the following error:
Invalid placeholder (!title) in string: !title in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 235 of core/lib/Drupal/Component/Render/FormattableMarkup.php).It seems like strings are sanitised in t() so we shouldn't need any placeholders here, try the attached patch.
Comment #5
NewZeal commentedCan people download the latest dev code, check this change is in the code, test and report back so we can go beta: https://www.drupal.org/node/2846411
Comment #6
joekersI've tested again and it's working for me - marking as fixed.