WordPress.org

Forums

Unnecessary HTML cleanup with the rich editor (2 posts)

  1. voyou
    Member
    Posted 7 years ago #

    When using the rich editor, wordpress alters the HTML on save, particularly replacing paragraph marks with double newlines. Why does it do this? It's unnecessary, as wpautop deals with text with paragraph tags in fine, indeed it's harmful, as TinyMCE knows the structure of what you're writing better than wpautop does, so is more likely to produce valid HTML (in particular, wpautop sometimes gets confused about whether it needs p tags in blockquotes).

    Is there a reason for this (mis)feature? If not, hopefully it can be removed in future versions.

  2. Ben Tremblay
    Member
    Posted 7 years ago #

    It seems "WYSIWYG is stripping html from posts" is covering this pretty well.

Topic Closed

This topic has been closed to new replies.

About this Topic