Skip to content
Snippets Groups Projects
Unverified Commit f2a9df06 authored by Awais Qureshi's avatar Awais Qureshi Committed by GitHub
Browse files

Merge pull request #21655 from edx/awais786/BOM-477

BOM-477
parents 6c89f617 68ecbc04
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ def get_inner_html_from_xpath(xpath_node):
"""
# returns string from xpath node
html = etree.tostring(xpath_node).strip()
html = etree.tostring(xpath_node).strip().decode('utf-8')
# strips outer tag from html string
# xss-lint: disable=python-interpolate-html
inner_html = re.sub('(?ms)<%s[^>]*>(.*)</%s>' % (xpath_node.tag, xpath_node.tag), '\\1', html)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment