Encoding special characters even with the raw filter due to include 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 &lt; &gt; ' " etc. are still encoded, where as they are not without the include. 

Please help me understand why this is occurring. Thank you.
As mentioned in the Discord you are probably looking for the source function.

The reason the include doesn't work is covered in the old PR for (what eventually became) source. It's probably best I link all that discussion than try to put it in my own words here!


Initial discussion with your problem
First PR
Further PR after discussion (the source function as it is now)