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

Reimplement sanitization of published worksheets #252

Closed
kcrisman opened this issue Oct 30, 2014 · 1 comment
Closed

Reimplement sanitization of published worksheets #252

kcrisman opened this issue Oct 30, 2014 · 1 comment
Labels

Comments

@kcrisman
Copy link
Member

See #100, which was later reverted here.

Nonetheless, this is useful, and probably crucial in some ways. Let's see if we can make this work out.

@kcrisman
Copy link
Member Author

I suppose we could go as simple as this part of it:

+except ImportError:
+    def clean_html(text):
+        # looks ugly, but gets the job done
+        return text.replace('<', '&lt;')

But ugly, as he says.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants