symfony - Escaping characters on Twig's localized date filter -


when using default date filter, can escape characters using \\ in front of each character.

the same not seem apply when using localizeddate filter (example).

anyone knows way of escaping characters when using intl filter?

accoring official icu docs, can escape letter using single-quote (').

example format:

hh 'o''clock' a, zzzz 

should produce:

12 o'clock pm, pacific daylight time 

notice 'o''clock' not tokenized...

hope helps.


Comments