Implement note editing and saving
- Refactor HTML sanitization into separate file, based primarily on
bleach rather than BeautifulSoup. BS makes it hard to sanitize
fragments of html without retaining ``<html><body>`` etc wrappers.
Move canonical link setting into a separate function, as these only
make sense where the HTML fragment has a ``<head>`` in it.
- Update FontAwesome to 4.3.
- Refactor ``NoteDetailView``, ``NoteSaveView``, and ``NoteView`` into
a single class inheriting from ``UpdateView``, greatly simplifying
that code.
TODO: Simplify NoteKeywordsView and NoteQuizView in a similar fashion,
if it makes sense to do so. Explore removing html2text from workflow
now that we have the aggressive cleaning from ``bleach``, and test
results with various document types.
17 files changed: