[snowy] Add |safe to all references of note.title



commit 208b80dd700f386b8e568a8bf654a73206e28c42
Author: Brad Taylor <brad getcoded net>
Date:   Mon Sep 7 15:47:36 2009 -0400

    Add |safe to all references of note.title
    
    Fixes: #594339

 notes/templates/notes/note_detail.html       |    2 +-
 notes/templates/notes/note_list_snippet.html |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/notes/templates/notes/note_detail.html b/notes/templates/notes/note_detail.html
index 7823dd2..9f952ab 100644
--- a/notes/templates/notes/note_detail.html
+++ b/notes/templates/notes/note_detail.html
@@ -20,7 +20,7 @@
 <div id="sidebar-note-list">
     <ul>
 {% for n in all_notes %}
-        <li class="note-item{% if n.pinned %} pinned{% endif %}"><a href="{{ n.get_absolute_url }}">{{ n.title }}</a></li>
+        <li class="note-item{% if n.pinned %} pinned{% endif %}"><a href="{{ n.get_absolute_url }}">{{ n.title|safe }}</a></li>
 {% endfor %}
         <li class="more-item"><a href="{% url note_list author.username %}">{% trans "More Notes..." %}</a></li>
     </ul>
diff --git a/notes/templates/notes/note_list_snippet.html b/notes/templates/notes/note_list_snippet.html
index e94fc5f..968b4ed 100644
--- a/notes/templates/notes/note_list_snippet.html
+++ b/notes/templates/notes/note_list_snippet.html
@@ -17,7 +17,7 @@
 {% else %}
             <td class="icon"><img src="{{ MEDIA_URL }}img/note_16.png" width="16" height="16" alt="Not pinned"/></td>
 {% endif %}
-            <td><a href="{{ note.get_absolute_url }}">{{ note.title }}</a></td>
+            <td><a href="{{ note.get_absolute_url }}">{{ note.title|safe }}</a></td>
             <td>{{ note.user_modified|naturalday|title }}</td>
             <td>{{ note.get_permissions_display }}</td>
         </tr>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]