[wp-trac] [WordPress Trac] #43172: Output Buffering and <pre>

WordPress Trac noreply at wordpress.org
Mon Jan 29 02:04:58 UTC 2018


#43172: Output Buffering and <pre>
--------------------------+-----------------------------
 Reporter:  briansahagun  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 It seems like output buffering removes the formatting of the contents of
 <pre> tags.

 {{{
 ob_start();
 the_content();
 $content_of_the_content = ob_get_contents();
 ob_end_clean();
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43172>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list