A
A
Alexander2018-08-25 13:21:00
css
Alexander, 2018-08-25 13:21:00

Escaping body from body?

There is a page, parts of which are displayed by twig, on this page there is a block in which another page will be displayed, the styles of which will clearly interfere with the main page. Iframe seems to be out of fashion for a long time already, so I don’t consider it. The question is how to make the main page not accept the styles that are laid down in this block, even if they are set inline. For an example and understanding, I sketched a schematic template below, on which, in the content block , there should theoretically be a page, an entire page with head, body, styles, and so on.

<html>
    <head>
        {% include 'partials/metadata.html.twig' %}
    </head>
    <body>
    
        {% include 'partials/header.html.twig' %}
        
        <div class="content">
            {% include 'partials/content.html.twig' %}
        </div>
        
        {% include 'partials/footer.html.twig' %}
    
    </body>
</html>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question