[wp-trac] [WordPress Trac] #43147: Introduce `esc_html_comment` and translation related functions

WordPress Trac noreply at wordpress.org
Wed Jan 24 19:11:44 UTC 2018


#43147: Introduce `esc_html_comment` and translation related functions
-------------------------------------------------+-------------------------
 Reporter:  jipmoors                             |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Formatting                           |  Review
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch has-unit-tests 2nd-        |  Resolution:
  opinion                                        |     Focuses:
-------------------------------------------------+-------------------------

Comment (by jipmoors):

 There is one more argument to consider, we can escape all of the ways to
 communicate with data: json, SQL, HTML, JavaScript. HTML comments are part
 of this domain, if not escaped properly they will cause side-effects and
 unwanted behaviour.

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


More information about the wp-trac mailing list