[sagenb] 29/179: Add nofollow to html scrubbing. Thanks to Volker Braun for bringing it up.

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 941299f3b68f496c9a5f44fb4e6608304fb46dad
Author: Jason Grout <jason.grout at drake.edu>
Date:   Tue Oct 9 10:13:13 2012 -0500

    Add nofollow to html scrubbing.  Thanks to Volker Braun for bringing it up.
---
 sagenb/notebook/cell.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sagenb/notebook/cell.py b/sagenb/notebook/cell.py
index f15afa7..d4eac7a 100644
--- a/sagenb/notebook/cell.py
+++ b/sagenb/notebook/cell.py
@@ -56,7 +56,7 @@ 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)
+    html_cleaner = SageCleaner(page_structure=False, remove_tags=('head', 'title'), style=True, add_nofollow=True)
     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