HTML-escape jq programs in manual

This commit is contained in:
Eiichi Sato committed 2014-12-21 03:24:41 +09:00
1 parent bd67bb8273
commit fdbc91e3c4
1 file changed
+3 -3
+3 -3
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 %}