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

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.