How can I use TWIG to isolate a numeral in a string and wrap it in a <span>? The string is always rendered as such:
"Thu 4 Apr"
I tried this but the <span> is not being rendered:
{{ date|replace({('(\\d+)'): '<span>$1</span>'})|raw }}
How can I use TWIG to isolate a numeral in a string and wrap it in a <span>? The string is always rendered as such:
"Thu 4 Apr"
I tried this but the <span> is not being rendered:
{{ date|replace({('(\\d+)'): '<span>$1</span>'})|raw }}