diff --git a/telematrix/__init__.py b/telematrix/__init__.py index b95465b..76bd032 100644 --- a/telematrix/__init__.py +++ b/telematrix/__init__.py @@ -97,7 +97,7 @@ def format_matrix_msg(form, content): :return: The formatted string. """ if 'format' in content and content['format'] == 'org.matrix.custom.html': - re.sub("(.+?)".format(MATRIX_HOST_BARE), "\\2", content['formatted_body']) + re.sub("(.+?)".format(MATRIX_HOST_BARE), "\\2", content['formatted_body']) sanitized = sanitize_html(content['formatted_body']) return html.escape(form).format(sanitized), 'HTML' else: