[wp-trac] [WordPress Trac] #47210: Allow html on site health titles and description

WordPress Trac noreply at wordpress.org
Thu Jun 20 14:06:26 UTC 2019


#47210: Allow html on site health titles and description
-------------------------------------------------+-------------------------
 Reporter:  juliobox                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Administration                       |     Version:  5.2
 Severity:  minor                                |  Resolution:
 Keywords:  needs-patch dev-feedback site-       |     Focuses:
  health 2nd-opinion                             |
-------------------------------------------------+-------------------------

Comment (by palmiak):

 I fully understand @juliobox point of view. Using some html tags can
 improve the readability of the titles and his screenshots has shown it.

 I see three ways to go:
 - we leave as it is
 - we remove the {{{esc_html}}} just as it's made in with
 {{{$details['description']}}}
 - we remove the {{{esc_html}}} and use {{{strip_tags}}} with a list of
 tags we can use (everything but not style or script tags. Also we can use
 it for {{{$details['description']}}} to keep it the same as the title.

 I would go with the third version - it's adds some sanitation, but also
 gives a chance to use extra tags.

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


More information about the wp-trac mailing list