Closed (fixed)
Project:
Drupal core
Version:
7.7
Component:
token system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2011 at 11:16 UTC
Updated:
24 Sep 2011 at 03:48 UTC
I'm trying to figure out how to put a square bracket set into a tokenisable field in such a way that it doesn't trigger the token replacement machinery, and can't see it documented anywhere. The only suggestion I've seen is to percent encode the square brackets. That isn't a solution though, because it assumes the field is destined to be streamed into a HTML output stram (and without encodingit at that - ugh). In my case, I'm trying to generate an email subject field, so *ML encodings aren't applicable.
Comments
Comment #1
devin carlson commentedI believe that the ability to do this was added in #733192: Tokens enclosed in [ ] are not recognized.
If you want square brackets in the tokens themselves, you should encode them as mentioned in how to escape square brackets?.