Skip to content

Commit

Permalink
Fixed #18001 -- Removed HTML entities in database.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed May 6, 2012
1 parent 82d1ff0 commit c263bb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_website/docs/management/commands/update_docs.py
Expand Up @@ -15,6 +15,7 @@
from django.conf import settings
from django.core.management.base import NoArgsCommand
from django.utils.html import strip_tags
from django.utils.text import unescape_entities
from unipath import FSPath as Path
from ...models import DocumentRelease, Document

Expand Down Expand Up @@ -141,7 +142,7 @@ def zipfile_inclusion_filter(f):
json_doc = json.load(fp)
try:
json_doc['body'] # Just to make sure it exists.
title = strip_tags(json_doc['title'])
title = unescape_entities(strip_tags(json_doc['title']))
except KeyError, ex:
if verbosity >= 2:
print "Skipping: %s (no %s)" % (path, ex.args[0])
Expand Down

0 comments on commit c263bb7

Please sign in to comment.