Fixed the spaces deletion at the beginning and end of the content of a tag

Are you ok with this fix?