Skip to content

Commit 9b09157

Browse files
committed
Disable autoescape in all templates
1 parent 130b2ba commit 9b09157

File tree

7 files changed

+22
-7
lines changed

7 files changed

+22
-7
lines changed

themes/markdown/class.md.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% import 'include/macros.twig' as macros %}
2+
{% autoescape false %}
23
{% block content %}
34
{% include 'partials/header.md.twig' with { node: node } %}
45

@@ -69,4 +70,5 @@
6970
{% if parameter.includeFooter == 'yes' %}
7071
{% include 'partials/footer.md.twig' %}
7172
{% endif %}
72-
{% endblock %}
73+
{% endblock %}
74+
{% endautoescape %}

themes/markdown/function.md.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% import 'include/macros.twig' as macros %}
2+
{% autoescape false %}
23
{% block content %}
34
{% include 'partials/header.md.twig' with {
45
node: node,
@@ -49,4 +50,5 @@ This function does not return a value.
4950
{% if parameter.includeFooter == 'yes' %}
5051
{% include 'partials/footer.md.twig' %}
5152
{% endif %}
52-
{% endblock %}
53+
{% endblock %}
54+
{% endautoescape %}

themes/markdown/index.md.twig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% import 'include/macros.twig' as macros %}
2+
{% autoescape false %}
23
{% block content %}
34
{% include 'partials/header.md.twig' with { node: project } %}
45

@@ -83,4 +84,8 @@ This is an automatically generated documentation for **{{project.name}}**.
8384
{%- endif %}
8485
{% endif %}
8586
{% endfor %}
86-
{% if parameter.includeFooter == 'yes' %}{% include 'partials/footer.md.twig' %}{% endif %}{% endblock %}
87+
{% if parameter.includeFooter == 'yes' %}
88+
{% include 'partials/footer.md.twig' %}
89+
{% endif %}
90+
{% endblock %}
91+
{% endautoescape %}

themes/markdown/interface.md.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% import 'include/macros.twig' as macros %}
2+
{% autoescape false %}
23
{% block content %}
34
{% include 'partials/header.md.twig' with { node: node } %}
45

@@ -60,4 +61,5 @@
6061
{% if parameter.includeFooter == 'yes' %}
6162
{% include 'partials/footer.md.twig' %}
6263
{% endif %}
63-
{% endblock %}
64+
{% endblock %}
65+
{% endautoescape %}

themes/markdown/method.md.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% import 'include/macros.twig' as macros %}
2+
{% autoescape false %}
23
### {{ method.name }}
34
{% if method.summary | trim %}
45

@@ -7,15 +8,13 @@
78

89
{# Method signature #}
910
```php
10-
{% autoescape false %}
1111
{% if method.final %}{{ 'final' ~ ' ' }}{% endif %}{{ method.visibility ~ ' ' }}{% if method.static %}{{ 'static' ~ ' ' }}{% endif %}{{ method.name }}({% for argument in method.arguments %}
1212
{{- argument.type }}
1313
{{- argument.byReference ? '&' }} $
1414
{{- argument.name }}{{ argument.default ? ' = ' ~ argument.default | raw }}
1515
{%- if not loop.last %}, {% endif %}
1616
{%- endfor %})
1717
{{- method.response.type ? ': ' ~ method.response.type }}
18-
{% endautoescape %}
1918
```
2019
{% include 'partials/description.md.twig' with { node: method } %}
2120
{% if method.static or method.abstract or method.final or method.deprecated %}
@@ -64,3 +63,4 @@
6463
{% include 'partials/tags.md.twig' with { tags: method.tags } only %}
6564

6665
***
66+
{% endautoescape %}

themes/markdown/property.md.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% import 'include/macros.twig' as macros %}
2+
{% autoescape false %}
23
### {{ property.name }}
34
{% if property.summary | trim %}
45

@@ -23,3 +24,4 @@
2324
{% include 'partials/tags.md.twig' with { tags: property.tags } only %}
2425

2526
***
27+
{% endautoescape %}

themes/markdown/trait.md.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% import 'include/macros.twig' as macros %}
2+
{% autoescape false %}
23
{% block content %}
34
{% include 'partials/header.md.twig' with { node: node } %}
45

@@ -35,4 +36,5 @@
3536
{% if parameter.includeFooter == 'yes' %}
3637
{% include 'partials/footer.md.twig' %}
3738
{% endif %}
38-
{% endblock %}
39+
{% endblock %}
40+
{% endautoescape %}

0 commit comments

Comments
 (0)