Aggrid cell not rendering html through javascript injection

Summary

I’m using Aggrid for streamlit and trying to render html throught injected javascript code however the cell content is not rendering the html but rather as string or text

Steps to reproduce

Code snippet:

 callRenderer = JsCode(
        """
          function(params) {
                     return 'Value is <b>' + params.value + '</b>';
                }
        """
    )
 gd = GridOptionsBuilder.from_dataframe(load_data())
gd.configure_column("id", cellRenderer=callRenderer)
 gdOptions = gd.build()
    df = load_data()
    AgGrid(df
           , gridOptions=gdOptions
           , allow_unsafe_jscode=True
           , enable_enterprise_modules=True
           , theme="streamlit"
    )

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

html content in the cell
‘Value is 1

Actual behavior:

javascript code is running fine but no html rendering
it outputs as follows:
‘Value is <b.>1</b.>’

Debug info

  • Streamlit version: 1.22
  • Python version: 3.11
  • OS version: MacOS sierra
  • Browser version: edge