summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEiichi Sato <sato.eiichi@gmail.com>2014-12-21 02:20:28 +0900
committerEiichi Sato <sato.eiichi@gmail.com>2014-12-21 03:24:41 +0900
commitfdbc91e3c46f7e86393b555461a6984ae6f98f99 (patch)
tree5c51b78eef7540a697be06e106b4ce9e49181657
parentbd67bb8273d38ad9e0d96ddc3758f8fc903d0986 (diff)
HTML-escape jq programs in manual
-rw-r--r--docs/templates/manual.liquid6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/templates/manual.liquid b/docs/templates/manual.liquid
index af22fcad..33b8654b 100644
--- a/docs/templates/manual.liquid
+++ b/docs/templates/manual.liquid
@@ -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 %}