use textContent instead of stripping HTML in undo

Use textContent directly when pushing undo revisions
Yes, you're right about the reformat; it's obviously required