PHP 7.4: new NewStripTagsAllowableTagsArray sniff by jrfnl · Pull Request #867 · PHPCompatibility/PHPCompatibility
Navigation Menu
{{ message }}
PHPCompatibility / PHPCompatibility Public
- Notifications You must be signed in to change notification settings
- Fork 204
Merged
Aug 28, 2019Conversation
Copy link Copy Markdown
Member
jrfnl
commented
Aug 20, 2019
jrfnl
commented
strip_tags()now also accepts an array of allowed tags: Instead of
strip_tags($str, '<a><p>')you can now writestrip_tags($str, ['a', 'p']).
Refs:
- https://github.com/php/php-src/blob/3775d47eee38f3b34f800a0b23f840ec7a94e4c7/UPGRADING#L301-L303
- php/php-src@b1e9c73
Includes unit tests.
Related to #808
jrfnl
added
Type: enhancement
PR: ready for review
labels
jrfnl
added this to the
9.3.0 milestone
jrfnl
requested a review
from wimg
jrfnl
force-pushed
the
php-7.4/new-striptags-allowabletags-array-sniff
branch
2 times, most recently
from
f45dbad to
19a66bb
Compare
> `strip_tags()` now also accepts an array of allowed tags: Instead of `strip_tags($str, '<a><p>')` you can now write `strip_tags($str, ['a', 'p'])`. Refs: * https://github.com/php/php-src/blob/3775d47eee38f3b34f800a0b23f840ec7a94e4c7/UPGRADING#L301-L303 * php/php-src@b1e9c73 Includes unit tests.
jrfnl
force-pushed
the
php-7.4/new-striptags-allowabletags-array-sniff
branch
from
19a66bb to
225268f
Compare
wimg approved these changes Aug 28, 2019
wimg
merged commit
3f01148
into
master
delete-merged-branch
bot
deleted the
php-7.4/new-striptags-allowabletags-array-sniff
branch
jrfnl
removed
the
PR: ready for review
label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment