Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #13314, comment 13


Ignore:
Timestamp:
09/06/2012 08:49:53 PM (12 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13314, comment 13

    v1 v2  
    11Yes, when we get the html out of TinyMCE, we strip all line breaks/extra white space, then it's run through pre_wpautop() to remove all <p> tags and insert some line breaks.
    22
    3 As the html is parsed into a DOM and then serialized back to a string, keeping the original white space/line breaks is impossible
     3As the html is parsed into a DOM and then serialized back to a string, keeping the original white space/line breaks is impossible, except in a <pre>.