from __future__ import annotations import html def build_scalar_docs_html(*, title: str, openapi_url: str, theme: str = "modern") -> str: escaped_title = html.escape(title) escaped_openapi_url = html.escape(openapi_url) escaped_theme = html.escape(theme) return f"""\n\n \n \n \n {escaped_title} API Reference\n \n \n \n \n \n \n\n"""