[wp-trac] [WordPress Trac] #51040: How about having a native BR to Newline method, i.e. br2nl

WordPress Trac noreply at wordpress.org
Thu Dec 14 20:34:14 UTC 2023


#51040: How about having a native BR to Newline method, i.e. br2nl
-------------------------------------------+------------------------------
 Reporter:  subrataemfluence               |       Owner:  (none)
     Type:  feature request                |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Formatting                     |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  2nd-opinion reporter-feedback  |     Focuses:
-------------------------------------------+------------------------------
Changes (by antonvlasenko):

 * keywords:  2nd-opinion => 2nd-opinion reporter-feedback


Comment:

 @subrataemfluence

 > When saved we usually convert all line breaks into HTML line breaks for
 easier rendering

 In my tests, when I save multiline text, it is saved as is, without the
 <br> characters.
 Also, `nl2br()` doesn't seem to be used by Core.
 Are you reffering to some custom code?

 Additionally, there has been no activity on this ticket for the past three
 years.
 Could it be closed in case it's no longer relevant?

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


More information about the wp-trac mailing list