Quantcast
Channel: outputting – 100% Private Proxies – Fast, Anonymous, Quality, Unlimited USA Private Proxy!
Viewing all articles
Browse latest Browse all 10

Why is Twig not outputting this correctly?

$
0
0

I have

function hook_theme_preprocess(array &$  variables, $  hook) {     $  variables['bla'] = ' AA <strong> BB </strong> CC '; } 

In my template I have:

{{ bla }} 

The problem is, in some cases the html is stripped. Even if I do this:

{{ bla | raw }} 

This works fine on all pages where this template is used, except on the home page. On the home page, for some bizarre reason, it strips the HTML.

Any idea as to why there would be different behaviour depending on which page I am on?

The post Why is Twig not outputting this correctly? appeared first on 100% Private Proxies - Fast, Anonymous, Quality, Unlimited USA Private Proxy!.


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>