Render HTML tags in st.dataframe()

I have a pandas dataframe (search_results) Iโ€™m rendering using st.dataframe:

st.dataframe(search_results, use_container_width=True).

Iโ€™m trying to highlight search terms (taken from a st.input_text) in the dataframe. The dataframe does not render HTML tags. Is there a way to highlight (or bold/underline) individual strings in my st.dataframe? Iโ€™ve tried rendering to an HTML table, but I then lose all of the functionality of the st.dataframe.

1 Like