def remove_html_markup(text, replacechar='<STR_LIT:U+0020>', remove_escaped_chars_p=True):
if not remove_escaped_chars_p:<EOL><INDENT>return RE_HTML_WITHOUT_ESCAPED_CHARS.sub(replacechar, text)<EOL><DEDENT>return RE_HTML.sub(replacechar, text)<EOL>
Remove HTML markup from text.

@param text: Input text.
@type text: string.
@param replacechar: By which character should we replace HTML markup.
    Usually, a single space or an empty string are nice values.
@type replacechar: string
@param remove_escaped_chars_p: If True, also remove escaped characters
    like '&amp;', '&lt;', '&gt;' and '&quot;'.
@type remove_escaped_chars_p: boolean
@return: Input text with HTML markup removed.
@rtype: string