Skip to content

Commit

Permalink
Merge pull request #36 from edx-solutions/element-parsing-fix
Browse files Browse the repository at this point in the history
HTML element parsing fix
  • Loading branch information
naeem91 authored Feb 15, 2018
2 parents 77d128c + fb129de commit ee25af5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions image_explorer/image_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import logging
import textwrap
import uuid
from lxml import etree
from xml.etree import ElementTree as ET
from lxml import etree, html

from xblock.core import XBlock
from xblock.fields import List, Scope, String, Boolean
Expand Down Expand Up @@ -251,7 +250,7 @@ def _inner_content(self, tag):
Helper met
"""
if tag is not None:
return u''.join(ET.tostring(e) for e in tag)
return u''.join(html.tostring(e) for e in tag)
return None

def _get_description(self, xmltree):
Expand Down

0 comments on commit ee25af5

Please sign in to comment.