#23832htmlArea RTE: cleanup DOM to html rendering
Description
Current DOM to html rendering code is not well-structured and difficult to understand.
(issue imported from #M16118)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.