Browse files

Worked around a problem with |striptags in 1.5rc1 (already fixed in 1…

  • Loading branch information...
1 parent 28cfdc6 commit 8f0ff61f7523812581a71a9001945fff28ea8d20 @jacobian jacobian committed Feb 19, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 aggregator/
8 aggregator/
@@ -8,6 +8,14 @@
from .models import FeedItem, Feed, FeedType, APPROVED_FEED
from .forms import FeedModelForm
+# The regex used for strip_tags in 1.5rc is somewhat broken on larger strings
+# (see which can break the feed
+# list view (via the |striptags filter). Monkeypatching until 1.5rc2 ships, at
+# which point this grossness can be removed.
+import re
+from django.utils import html
+html.strip_tags_re = re.compile(r'<[^>]*?>', re.IGNORECASE)
def index(request):
Displays the latest feeds of each type.

0 comments on commit 8f0ff61

Please sign in to comment.