Posts

Showing posts from March, 2026

Fixing Gemini chat to Blogger Compose post copy-paste causing 1.5 MB post size bloat due to unnecessary CSS

Summary The Problem: Copy-pasting content from Gemini Chat into the Blogger Compose view was injecting thousands of lines of hidden CSS and browser extension variables (like Dark Reader styles). The Impact: Single blog posts ballooned from a few kilobytes to over 1.5 MB , causing the Blogger Feed to truncate results and breaking the BloggerFeedToBook incremental backup utility. The Solution: A 12-step sanitization process using PrettyHTML and VSCode to strip unnecessary tag attributes while preserving headers, bolding, and lists. The steps in the process are given below in this Summary itself. The Result: Post sizes were reduced by 96% (from 1,491 KB down to ~50-60 KB) without losing any visible text or core formatting. 12-step Sanitization Process Copy HTML of original blog post using 'Edit HTML' view into a file: post-orig.html. Use this as a backup copy. Don't modify it. Load post-orig.html into https://prettyhtml.com/ . Note size shown in prettyhtml.com...