Skip to content

Commit 29b6a0f

Browse files
committed
feature #21390 [HtmlSanitizer] Use the native HTML5 parser when using PHP 8.4+ (javiereguiluz)
This PR was squashed before being merged into the 7.4 branch. Discussion ---------- [HtmlSanitizer] Use the native HTML5 parser when using PHP 8.4+ Fixes #21283. Commits ------- cea79c8 [HtmlSanitizer] Use the native HTML5 parser when using PHP 8.4+
2 parents b26d147 + cea79c8 commit 29b6a0f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

html_sanitizer.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ You can install the HTML Sanitizer component with:
2929
3030
$ composer require symfony/html-sanitizer
3131
32+
.. versionadded:: 7.4
33+
34+
Starting in Symfony 7.4, applications running on PHP 8.4 or higher will use
35+
the native HTML5 parser provided by PHP. All other applications will continue
36+
to use the third-party ``masterminds/html5`` parser, which is installed
37+
automatically when installing the HTML Sanitizer package.
38+
3239
Basic Usage
3340
-----------
3441

0 commit comments

Comments
 (0)