Bug #80565 [PATCH]: strip_tags altering allow tags attributes
| From: | roberto.diana@gmail.com | Date: | Wed, 30 Dec 2020 21:34:00 +0000 |
| Subject: | Bug #80565 [PATCH]: strip_tags altering allow tags attributes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231316@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80565&edit=1
ID: 80565
Patch added by: roberto.diana@gmail.com
Reported by: roberto dot diana at gmail dot com
Summary: strip_tags altering allow tags attributes
Status: Open
Type: Bug
Package: *General Issues
PHP Version: master-Git-2020-12-30 (Git)
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Adds test and fix to bug 74371 but for php8
On GitHub: https://github.com/php/php-src/pull/6492
Patch: https://github.com/php/php-src/pull/6492.patch
Previous Comments:
------------------------------------------------------------------------
[2020-12-30 21:29:53] roberto dot diana at gmail dot com
Description:
------------
Basic test example
https://3v4l.org/4Yaoj
Test script:
---------------
<?php
echo strip_tags('<tag alt="xx> xx<">', '<tag>') .
PHP_EOL;
Expected result:
----------------
<tag alt="xx> xx<">
Actual result:
--------------
<tag alt="xx xx">
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80565&edit=1