Use non-breaking space in Symfony translation

Viewed 1858

I am trying to use a non-breaking space character   in a translation.

# messages.cs.yml
"City near river": "Město u řeky"

However, the non-breaking space character is escaped when translating in template.

{{ 'City near river'|trans }} # prints "Město u řeky"

Is there any way how to make this work?

2 Answers
Related