Commit 22f4004e by Piotr Mitros

HTML no longer has answers

parent de585e2c
......@@ -193,6 +193,12 @@ class LoncapaProblem(object):
if problemtree.tag in html_transforms:
tree.tag=html_transforms[problemtree.tag]['tag']
# Reset attributes. Otherwise, we get metadata in HTML
# (e.g. answers)
# TODO: We should remove and not zero them.
# I'm not sure how to do that quickly with lxml
for k in tree.keys():
tree.set(k,"")
# TODO: Fix. This loses Element().tail
#if problemtree.tag in html_skip:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment