damyon / moodle-editor_atto

Atto text editor for Moodle
GNU General Public License v3.0
6 stars 7 forks source link

Unreadable HTML #30

Open allefeld opened 3 years ago

allefeld commented 3 years ago

One of the nice things about the Atto editor is that one can switch to HTML. Sometimes I need some special markup, so I can start writing in rich text mode, and then finalize in HTML mode.

However, the HTML produced by rich text editing is quite unreadable. Here the example of a simple three-line email with one word emphasized:

Screenshot_20210712_210937

The three <p> tags are crammed together on one line, and every paragraph has ltr and style attributes. But this is even a relatively harmless example, I've seen cases where random parts of the text were put into <span> tags etc.

I propose to clean up the HTML code, so one can actually easily work with it.