Bug 1094320 - rich markup

Yep, we found this with @gmarty when analyzing the issue in SMS. We have a lot of empty spaces in the textContent (which we should also fix btw).
would you like a comment to explain this? or another name for the variable like "trimmedText" or "compactedText" ?