diff --git a/src/streamlit_app.py b/src/streamlit_app.py index 2378779..ec37a4e 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -526,11 +526,14 @@ if st.session_state.error_log: copy_button = st.button("Copy Error Log") if copy_button: # Create a JavaScript function to copy the text + # Escape any backticks in the error text first + escaped_error_text = error_text.replace('`', '\u0060') + js_code = f"""