Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #18001 -- Removed HTML entities in database.

  • Loading branch information...
commit c263bb71dd38c6b594e58fcbf4dae7d3310f7211 1 parent 82d1ff0
@aaugustin aaugustin authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django_website/docs/management/commands/update_docs.py
View
3  django_website/docs/management/commands/update_docs.py
@@ -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
@@ -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])
Please sign in to comment.
Something went wrong with that request. Please try again.