@camirozario, Since Grav 1.7.0-rc.20, the auto-escape
function for Twig has been enabled by default. This has been done as a security measure to prevent malicious code to run.
Theme X-Corporation has not updated its code to this change (last update 3 years ago) and hence all output is escaped.
There are three options to fix or workaround this:
- If you feel comfortable with code, you can go through all templates of X-Corporation and add filter
| raw
to output statements of which you are sure the data is safe. Eg.{{ content | raw }}
,{{ assets.css() | raw }}
,{{ assets.js() | raw }}
, etc. - Or you can add the following settings to
system.yaml
to disable auto-escaping:
Clear the cache after adding this snippet.twig: autoescape: false strict_mode: twig_compat: true
- Choose a theme which has taken care of auto-escaping.
Note:
As said, auto-escaping is a security measure, which makes option 2. only advisable as temporary solution until all templates have been fixed as mentioned in option 1.
By the way, I’ve asked the developer if there are any plans to fix this.