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

WordPress Trac noreply at wordpress.org
Wed Feb 11 19:49:16 UTC 2015


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

Comment (by cweiske):

 The applied patch does not work when the `<pre>` tag contains HTML
 entities like ` `.

 `$dom->saveHTML()` replaces the entities with their real characters, which
 in turn leads to a failing following `str_replace` call.

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


More information about the wp-trac mailing list