- Issue created by @ufku
- last update
over 1 year ago Patch Failed to Apply - Status changed to Needs work
over 1 year ago 12:14am 31 August 2023
Define a custom node property as
[
'type' => 'text',
'sanitized' => TRUE,
'computed' => TRUE,
...
]
Call token_replace
// Returns correct html.
print token_replace('[node:x]', ['node' => $node], ['sanitize' => TRUE]);
// Returns empty string.
print token_replace('[node:x]', ['node' => $node], ['sanitize' => FALSE]);
The sanitize
option should not affect the output for already sanitized tokens.
Needs work
1.0
Entity tokens