[wp-trac] [WordPress Trac] #48848: Passing array of tag names for strip_tags() in WP Mail

WordPress Trac noreply at wordpress.org
Mon Dec 2 07:44:45 UTC 2019


#48848: Passing array of tag names for strip_tags() in WP Mail
--------------------------+------------------------------
 Reporter:  dkarfa        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Mail          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by dkarfa):

 In PHP 7.4 now strip_tags() also accepts an array of allowed tags: instead
 of strip_tags($str, '<a><p>') you can now write strip_tags($str, ['a',
 'p']).

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


More information about the wp-trac mailing list