Is it possible to place escaped characters in a Streamlit text_area component?
I would like to place escaped tabs “\t” into the text_area component so that I can copy and paste the text area content into an Excel spreadsheet. The spreadsheet has merged cells so the format must be [text, tab, text tab tab, text tab tab, text] for the content to be properly copied into the correct cells.
Which can be copy pasted to Excel (or here a Google Sheet) and it should work seamlessly!
Now, depending on your overall workflow, I wonder if there would be a cleaner way to transmit data from your app to Excel. If, by chance, you’re using Pandas, maybe worth giving a look at to_excel()?