use textContent instead of stripping HTML in undo