def METHOD_NAME(realm_str: str) -> Markup:
    support_url = reverse("support")
    query = urlencode({"q": realm_str})
    url = append_url_query_string(support_url, query)
    return Markup('<a href="{url}">{realm_str}</a>').format(url=url, realm_str=realm_str)