projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d66dc
)
actually have to specify utf-8, not default as advertised
author
Bryan
<btbonval@gmail.com>
Tue, 14 Jan 2014 09:18:37 +0000
(
04:18
-0500)
committer
Bryan
<btbonval@gmail.com>
Thu, 16 Jan 2014 01:30:33 +0000
(20:30 -0500)
karmaworld/apps/notes/models.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/models.py
b/karmaworld/apps/notes/models.py
index 778c84e64c4bec95e9c7215453c5f04aaa784a32..8cddeee088ea9c0e319f364d34b213d9a7f8ab48 100644
(file)
--- a/
karmaworld/apps/notes/models.py
+++ b/
karmaworld/apps/notes/models.py
@@
-246,7
+246,7
@@
class Note(Document):
soup = soupfilter(soup)
# Return BeautifulSoup cleaned up HTML in UTF-8
# http://www.crummy.com/software/BeautifulSoup/bs4/doc/#output-encoding
- return soup.prettify()
+ return soup.prettify(
"utf-8"
)
def sanitize_anchor_html(self, soup):
"""