Skip to content

page_opts(title=...) does not accept Tag/TagList objects #1033

@wch

Description

@wch

From #1016 (comment):

page_opts(title=...) won't handle Tag/TagList values for title as well as we do in other places. For example, this will put <h6>Title</h6> on the browser tab (i.e., <title>):

from shiny.express import ui

ui.page_opts(title=ui.h6("Title"))

Whereas, this will actually extract the string, so that the tab says Title, not <h6>Title</h6>

import shiny.express
from shiny.ui import panel_title

panel_title(ui.h6("Title"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions