'The capa xml includes many tags such as <additional_answer> or <demandhint> which are not
meant to be part of the client html. We strip them all and return the resulting html.'

def remove_tags_from_html(self, html):

    tags = ['demandhint', 'choicehint', 'optionhint', 'stringhint', 'numerichint', 'optionhint', 'correcthint', 'regexphint', 'additional_answer', 'stringequalhint', 'compoundhint', 'stringequalhint']
    for tag in tags:
        html = re.sub(('<%s.*?>.*?</%s>' % (tag, tag)), '', html, flags=re.DOTALL)
    return html
