Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions html_sanitizer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ You can install the HTML Sanitizer component with:

$ composer require symfony/html-sanitizer

.. versionadded:: 7.4
Copy link
Contributor

@OskarStark OskarStark Sep 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you add this info inside the version added directive, the info will be gone in 8.0

Copy link
Member Author

@javiereguiluz javiereguiluz Sep 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I did this on purpose because this is mostly an internal detail. In the current docs we don't even mention anything about the third-party parser used nowadays.

I thought about closing this as "won't fix" ... but since we're changing the default parser, a brief mention about it could be needed.


Starting in Symfony 7.4, applications running on PHP 8.4 or higher will use
the native HTML5 parser provided by PHP. All other applications will continue
to use the third-party ``masterminds/html5`` parser, which is installed
automatically when installing the HTML Sanitizer package.

Basic Usage
-----------

Expand Down