Is it possible to run a function on a Silverstripe template variable to format output?
-
29-10-2019 - |
Вопрос
I've created a data model that includes a plain textarea entry field for an office address. I would like to do the equivalent of nl2br($OfficeAddr)
when printing the data in my relevant Silverstripe template. As far as I can tell, their templating system does not support such functionality.
Am I missing something? Any recommended workarounds?
Нет правильного решения
Не связан с StackOverflow