i
Size: a a a
i
AR
EU
AR
EU
AR
AR
EU
EU
A
EU
AR
AR
S
AR
pattern = re.compile(r"(?:^|(?<=>))([\s\S]*?)(?:(?=<)|$)") #TODO: <code></code>
repl = lambda x: translator(query_text=x.group(1).strip(), to_language=to_language,**translator_params) if x.group(1).strip() else ''
return re.sub(pattern=pattern, repl=repl, string=html_text)