This script removes unwanted XML/HTML tags from Google Sheets, making content more readable.
- Removes
<p>,<ul>,<li>,<strong>and other common tags. - Replaces bullet points for
<li>tags. - Converts
and&into readable spaces and symbols (&). - Prevents excessive empty lines and ensures clean formatting.
- Open your Google Sheet and ensure that the project is saved "as a Google Sheet", and not as .xls or .xlsx
- Click
Extensions→Apps Script("Extensions" won't appear if saved as .xlsx or .xls) - Copy and paste the
cleanXMLTags.gsscript into the editor - Click the Save and then the Run button (you may be prompted to authorize with your Google account)
- Go to: Excel Online → Ribbon bar → Automate tab → Script Editor → New Script → Paste code
- Click Save & Run