1
0
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:
Eiichi Sato
2014-12-21 02:20:28 +09:00
parent bd67bb8273
commit fdbc91e3c4

View File

@ -70,8 +70,8 @@
{% for example in entry.examples %}
<table class="manual-example">
<tr><th></th><td class="jqprogram">jq '{{example.program}}'</td></tr>
<tr><th>Input</th><td>{{example.input}}</td></tr>
<tr><th></th><td class="jqprogram">jq '{{example.program | escape}}'</td></tr>
<tr><th>Input</th><td>{{example.input | escape}}</td></tr>
{% unless example.output[0] %}
<tr>
<th>Output</th>
@ -85,7 +85,7 @@
{% else %}
<th></th>
{% endif %}
<td>{{output}}</td>
<td>{{output | escape}}</td>
</tr>
{% endfor %}