Extra divs and spans are added when text is edited or copy/pasted using the GUI richHTML content fields.
Using the clear format button and removing whitespaces manually.
extra span tags