Get Your FREE Strategy Analysis!

Learn More
Home » Copying and Pasting from Word

Copying and Pasting from Word

Sanitizing Text When Working on Websites

Copying and pasting from Microsoft Word into any CMS (like WordPress or Joomla) is a common issue. This problem arises frequently, so we’ll explain it here and provide solutions to prevent it from happening.

Sanitize Formatted Text Before Pasting

When you copy content (text, tables, images, etc.) from a program like Microsoft Word and paste it into a browser editor, extra formatting information embedded by Word is included. This extra formatting can cause strange issues in the editor because the formatting from Word is not pure HTML and differs from what the browser editor expects.

Copying and pasting from Word works best when you sanitize the text, removing that extra formatting. Here are two ways to do that:

  1. Copy from Word, open up a plain text document (Notepad program on Windows or TextEdit or TextWrangler for Mac) and paste into that program. Select all the text again, copy it again (make sure you do select all of it and re-copy it again) and then go into the editor in your web browser and paste. You will have to reformat things like bold and italic, but your text will be clean.
  2. Copy from Word, paste into the editor and then select what you just pasted in and find the “Remove Formatting” button (if it exists) – or sometimes there is a “Paste from Word” which you can use to paste text in. Your text should be clean from extra formatting now.

The first method is probably the best way to do it. WordPress has a good system for pasting from Word and so does Joomla.

If you need to copy and paste tables, then please note that you will have to rebuild the entire table again in HTML. Sorry.

0
    0
    Your Cart
    Your cart is emptyReturn to Shop