[sagenb] 31/179: Remove the remainder of the whatwg unsafe tags.

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit 003436a47bc97429ea25287d2aa15fc4a2b527eb
Author: Jason Grout <jason.grout at drake.edu>
Date:   Tue Oct 9 10:23:11 2012 -0500

    Remove the remainder of the whatwg unsafe tags.
    
    See https://groups.google.com/forum/?fromgroups=#!msg/sage-devel/ze5PZc1Wyjk/sjc-vkYbkUIJ for a discussion.
---
 sagenb/notebook/cell.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sagenb/notebook/cell.py b/sagenb/notebook/cell.py
index b61c66a..363500c 100644
--- a/sagenb/notebook/cell.py
+++ b/sagenb/notebook/cell.py
@@ -56,7 +56,9 @@ try:
             if el.tag=='script' and el.get('type')=='math/tex' and not el.get('src'):
                 return True
             return super(SageCleaner, self).allow_element(el)
-    html_cleaner = SageCleaner(page_structure=False, remove_tags=('head', 'title'), style=True, add_nofollow=True)
+
+    html_cleaner = SageCleaner(style=True, add_nofollow=True,
+                               remove_tags=('base', 'basefont', 'bdo', 'body', 'isindex', 'noscript'))
     def clean_html(text):
         try:
             return html_cleaner.clean_html(text)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list