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:
3008948
)
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>
Tue, 14 Jan 2014 09:18:37 +0000
(
04:18
-0500)
karmaworld/apps/notes/models.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/models.py
b/karmaworld/apps/notes/models.py
index 722db8e2aeb0bed2c5f4d8e7c5c1f0c3815b42ff..5e886c3d1f2c01e444a6dff7d9659eee7aecae81 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):
"""