PHP 5.3.4: new ForbiddenStripTagsSelfClosingXHTML sniff by jrfnl · Pull Request #866 · PHPCompatibility/PHPCompatibility
Navigation Menu
{{ message }}
PHPCompatibility / PHPCompatibility Public
- Notifications You must be signed in to change notification settings
- Fork 204
Merged
Aug 28, 2019Merged
Conversation
Copy link Copy Markdown
Member
jrfnl
commented
Aug 20, 2019
jrfnl
commented
In PHP 5.3.4 and later, self-closing XHTML tags are ignored and only non-self-closing tags should be used in allowable_tags. For example, to allow both
<br>and<br/>, you should use:<?php strip_tags($input, '<br>'); ?>
Ref:
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-5.3.4/new-forbidden-striptags-selfclosingxhtml-sniff
branch
2 times, most recently
from
32fd1bc to
9936124
Compare
> In PHP 5.3.4 and later, self-closing XHTML tags are ignored and only non-self-closing tags should be used in allowable_tags. For example, to allow both <br> and <br/>, you should use: > ```php > <?php > strip_tags($input, '<br>'); > ?> > ``` Ref: * https://www.php.net/manual/en/function.strip-tags.php#refsect1-function.strip-tags-changelog
jrfnl
force-pushed
the
php-5.3.4/new-forbidden-striptags-selfclosingxhtml-sniff
branch
from
9936124 to
fd36285
Compare
wimg approved these changes Aug 28, 2019
wimg
merged commit
0c3be21
into
master
delete-merged-branch
bot
deleted the
php-5.3.4/new-forbidden-striptags-selfclosingxhtml-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