Clean HTML, accessibility and SEO

Pasting from Word and Google Docs, semantic HTML, accessible content, the EAA and page structure for search engines.

Clean HTML, accessibility and SEO

How to clean HTML copied from Google Docs

HTML copied from Google Docs contains a style on almost every fragment of text, a <b id="docs-internal-guid-…"> wrapper around the whole thing, and dir, role and aria-level attributes. Cleaning it means removing that wrapper, turning styled span elements into strong and em, keeping headings, list…

Clean HTML, accessibility and SEO

How to paste from Word into a CMS and get clean HTML

To paste text from Word into a CMS without unnecessary code, you need to keep the document’s structure – headings, lists, tables, links and emphasis – and remove everything Word adds for its own layout: Mso classes, mso- styles, fonts, colours and empty tags. This is best done by an editor that c…

RSS feed