You get a bonus - 1 coin for daily activity. Now you have 1 coin

Twig converts html text entities, and a line break is output as <br>

Practice




twig converts html text entities, and a line break is output as the letters

{% autoescape %}
{{ var|raw }} {# var will not be replaced with entities #}
{% endautoescape %}


or like this

{{ test|safe }}

or

{% autoescape on %}
Inside this block all variables will be escaped
{% endautoescape %}

{% autoescape off %}
Everything will be output "as is" in this block
{% endautoescape %}

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)