Re: [RFC] Deprecations for PHP 7.3
| From: | Stanislav Malyshev | Date: | Mon, 25 Jun 2018 18:50:39 +0000 |
| Subject: | Re: [RFC] Deprecations for PHP 7.3 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102436@lists.php.net to get a copy of this message | ||
Hi!
> There are multiple bug reports regarding strip_tags()'s broken behavior
> on (slightly) malformed HTML, e.g.
> <https://bugs.php.net/63212>,
> <https://bugs.php.net/64430> and
> <https://bugs.php.net/74371>, which
> renders the function unusable on arbitrary user supplied input.
I see a very corner-case issues that don't really make it "unusable" -
in fact, in these examples it looks like it chooses the most safe
approach. Which means it can't be used to fix broken HTML or parse
Javascript scripts, but that's not the point of this function anyway.
--
Stas Malyshev
smalyshev@gmail.com