Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
unescape live docs
Browse files Browse the repository at this point in the history
  • Loading branch information
migeruhito committed Dec 5, 2015
1 parent 52cfbe3 commit 05cae2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sagenb/flask_version/worksheet.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
import os, threading, collections
from functools import wraps
from flask import Module, make_response, url_for, render_template, request, session, redirect, g, current_app
from flask import Module, make_response, url_for, render_template, request, session, redirect, g, current_app, Markup
from decorators import login_required, with_lock
from collections import defaultdict
from werkzeug.utils import secure_filename
Expand Down Expand Up @@ -1038,7 +1038,8 @@ def worksheet_file(path):

doc_page_html = open(path).read()
from sagenb.notebook.docHTMLProcessor import SphinxHTMLProcessor
doc_page = SphinxHTMLProcessor().process_doc_html(doc_page_html)
doc_page = Markup(unicode_str(
SphinxHTMLProcessor().process_doc_html(doc_page_html))).unescape()

title = (extract_title(doc_page_html).replace('—', '--') or
'Live Sage Documentation')
Expand Down

0 comments on commit 05cae2c

Please sign in to comment.