Opened 5 years ago
Closed 5 years ago
#48848 closed defect (bug) (maybelater)
Passing array of tag names for strip_tags() in WP Mail
Reported by: | dkarfa | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Keywords: | has-patch | |
Focuses: | Cc: |
Description
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
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']).