You can find more about this here:
FYI, an easy way to avoid this is to use “Paste as plain text” from the right-click menu, or Ctrl+Shift+V.