Permalink
Browse files

escaping html and adding <pre> around raw body

  • Loading branch information...
1 parent 0327e5b commit a320fb496649dbe0b3c22e4823e3aceab9cfce97 @progrium progrium committed Jul 5, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/bin.html
View
4 templates/bin.html
@@ -19,8 +19,8 @@
<table>
{% for part in post %}
<tr>
- <td title="{{ part.0 }}" class="key">{{ part.0 }}</td>
- <td>{{ part.1 }}</td></tr>
+ <td title="{{ part.0 }}" valign="top" class="key">{{ part.0 }}</td>
+ <td>{% ifequal part.0 "body" %}<pre>{% endifequal %}{{ part.1|escape }}{% ifequal part.0 "body" %}</pre>{% endifequal %}</td></tr>
{% endfor %}
</table>
</li>

0 comments on commit a320fb4

Please sign in to comment.