mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
HTML-escape jq programs in manual
This commit is contained in:
6
docs/templates/manual.liquid
vendored
6
docs/templates/manual.liquid
vendored
@ -70,8 +70,8 @@
|
|||||||
|
|
||||||
{% for example in entry.examples %}
|
{% for example in entry.examples %}
|
||||||
<table class="manual-example">
|
<table class="manual-example">
|
||||||
<tr><th></th><td class="jqprogram">jq '{{example.program}}'</td></tr>
|
<tr><th></th><td class="jqprogram">jq '{{example.program | escape}}'</td></tr>
|
||||||
<tr><th>Input</th><td>{{example.input}}</td></tr>
|
<tr><th>Input</th><td>{{example.input | escape}}</td></tr>
|
||||||
{% unless example.output[0] %}
|
{% unless example.output[0] %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>Output</th>
|
<th>Output</th>
|
||||||
@ -85,7 +85,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<th></th>
|
<th></th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>{{output}}</td>
|
<td>{{output | escape}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user