[wp-trac] [WordPress Trac] #46188: esc_html does not have support for multiline output. esc_br_html or line-breaking parameter for esc_html is missing

WordPress Trac noreply at wordpress.org
Thu Feb 27 15:28:36 UTC 2025


#46188: esc_html does not have support for multiline output. esc_br_html or line-
breaking parameter for esc_html is missing
--------------------------------------+------------------------------
 Reporter:  KestutisIT                |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Formatting                |     Version:  5.0.3
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  template
--------------------------------------+------------------------------

Comment (by geekofshire):

 Hey everyone, I noticed this ticket has been open for a while, and since
 it’s a useful enhancement, I’ve taken the initiative to implement
 `esc_br_html()` along with related functions (`esc_br_html__()`,
 `esc_br_html_x()`, `esc_br_html_e()`).

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


More information about the wp-trac mailing list