[wp-trac] [WordPress Trac] #31214: oEmbed: Newlines within <pre> tags get removed

WordPress Trac noreply at wordpress.org
Wed Feb 11 22:17:29 UTC 2015


#31214: oEmbed: Newlines within <pre> tags get removed
--------------------------+-----------------------------
 Reporter:  cweiske       |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.2
Component:  Embeds        |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by wonderboymusic):

 In [changeset:"31423"]:
 {{{
 #!CommitTicketReference repository="" revision="31423"
 Use RegEx instead of `DOMDocument` when protecting `<pre>` tags in
 `WP_oEmbed::_strip_newlines()`. It is incredibly difficult to maintain
 character encoding and whitespace when parsing via `DOMDocument`.

 See #31214.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31214#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list