import mesop as me def load(e: me.LoadEvent): me.set_theme_mode("system") @me.page( on_load=load, security_policy=me.SecurityPolicy( allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"] ), path="/html_demo", ) def app(): with me.box(style=me.Style(margin=me.Margin.all(15))): me.text("Sanitized HTML", type="headline-5") me.html( """ Custom HTML mesop """, mode="sanitized", ) with me.box(style=me.Style(margin=me.Margin.symmetric(vertical=24))): me.divider() me.text("Sandboxed HTML", type="headline-5") me.html( "hi", mode="sandboxed", )