You can use this functionality at https://sandersade.github.io/SqlManagementStudio.PasteAsHtml
I have needed the results from SQL Server Management Studio quite often for displaying as a table - whether to display in a website or chat programs that support HTML tables. This has been a pain - save in Studio as CSV, open in Excel, save as HTML.
This projects takes the output from SQL Management Studio query results (right click --> Copy or Copy with headers) and converts the output to basic HTML table that you can style as needed, or just copy-paste as-is.
- Does not send any data to backend/server, pure HTML/CSS/JS frontend functionality
- Supports table headers
- Automatically encodes HTML critical entities to avoid script injection or display issues
- Copy results either as HTML table code suitable for web pages or as HTML element for pasting into rich text clients
- Works also with direct copy-paste from Excel
Click on image for larger screenshots