Disabling auto-escaping of button/ dropdown labels

Hi all,
I’ve been trying to use texts with space padding to populate a dropdown.
Most spaces are suppressed, and i suppose it is just the way the HTML handles this string.
I tried to add  , but the ampersand is being escaped and replaced to &amp, i can see this in the HTML.
Any way to disable the escaping for this dropdown?

Thanks.

No way apart from writing your own widget model. Which is not that hard but requires you to write some JavaScript/TypeScript.

Thanks. I’m very raw in JavaScript, but i can get something going. How do i imtegrate this with a Python based Bokeh layout?

It’s described here: Extending Bokeh — Bokeh 2.4.2 Documentation