installationcontent-management-systemgrav

Grav CMS on Windows


I installled grav from composer. copied the select2 doc folder from git repository to users folder on my grav cms installation When I open it on localhost it shows like the attached image. What am I doing wrong enter image description here


Solution

  • As a security measure, Grav 1.7 has enabled Twig function 'autoescape' by default. That means all output (stylesheets tags, scripts tags, content, etc.) are being escaped to prevent malicious code to run.

    There are a few options to fix or workaround this:

    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.

    Kind request: If you post the same question on the repo mentioned above, it would be appreciated if you mention the cross-post.