Skip to content

Commit a792fa1

Browse files
committed
[HtmlSanitizer] Use the native HTML5 parser when using PHP 8.4+
1 parent b26d147 commit a792fa1

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 HTML 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)