Hey guys i have something odd happening and I don't understand why:
The opening of my template i set a variable {% set text = component.textarea ?? null %}
Lower in my template i have the following: {% set text = include('_components/_dataTypes/textarea') %}
That template only currently has {{ text }}
in it so as of right now doesn't mean much.
Then last in my template i have {{ text|raw }}
However characters are still encoded.
I've found that if i remove the include template, even though all it includes is {{ text }}
that |raw
works. I should note that if i put |raw
in the include template, it still does not work.
Why is that? Is it a parse order thing or what's going on there that causes the include to ignore the filter? I should note that using Wordsmith and the |pde
filter does work regardless of the include... however characters such as < > ' "
etc. are still encoded, where as they are not without the include.
Please help me understand why this is occurring. Thank you.