Skip to content

[HtmlSanitizer] Fix a few typos in the introduction #16853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions html_sanitizer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ HTML Sanitizer

The HTML Sanitizer component was introduced in Symfony 6.1.

The HTML Sanitizer components aims at sanitizing/cleaning untrusted HTML
The HTML Sanitizer component aims at sanitizing/cleaning untrusted HTML
code (e.g. created by a WYSIWYG editor in the browser) into HTML that can
be trusted. It is based on the `HTML Sanitizer W3C Standard Proposal`_.

The HTML sanitizer creates a new HTML structure from scratch, taking only
the elements and attributes that are allowed by configuration. This means
that the returned HTML is very predicatable (it only contains allowed
that the returned HTML is very predictable (it only contains allowed
elements), but it does not work well with badly formatted input (e.g.
invalid HTML). The sanitizer is targetted for two use-cases:
invalid HTML). The sanitizer is targeted for two use cases:

* Preventing security attacks based on XSS or other technologies relying on
execution of malicious code on the visitors browsers;
Expand Down
2 changes: 1 addition & 1 deletion security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ be ``authenticate``:

.. code-block:: html+twig

{# templates/security/login.html.twig #}
{# templates/login/index.html.twig #}

{# ... #}
<form action="{{ path('login') }}" method="post">
Expand Down