User editable Message Templates, the Contact Action: Send an Email and the Contact Action: Print Merge/Document cannot use any Smarty Tokens with the crmDate function because CKEditor 4 unnecessarily HTML encodes single quotes (') and double quotes (")
User editable Message Templates, the Contact Action: Send an Email and the Contact Action: Print Merge/Document cannot use any Smarty Tokens with the crmDate function because CKEditor 4 unnecessarily HTML encodes single quotes (') and double quotes (").
So if you use a Smarty Token like:
{contribution.receive_date|crmDate:"%E%f %B %Y"}
{contribution.receive_date|crmDate:'%E%f %B %Y'}
When CKEditor 4 parses the HTML it converts this into:
{contribution.receive_date|crmDate:"%E%f %B %Y"}
{contribution.receive_date|crmDate:'%E%f %B %Y'}
Effectively rendering the crmDate function unusable in these situations.
Using CKEditor 5 does solve this specific problem, however CKEditor 5 introduces new problems such as the inability for users to resize images, loss of some formatting controls and importantly prevents the ability to view/edit the source HTML.
Agileware Ref: CIVICRM-2103