Skip to content

Commit 83eeb92

Browse files
sandobaOskarStark
authored andcommitted
[HtmlSanitizer] Fix a few typos in the introduction
1 parent d2fdf1a commit 83eeb92

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

html_sanitizer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ HTML Sanitizer
55

66
The HTML Sanitizer component was introduced in Symfony 6.1.
77

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

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

1818
* Preventing security attacks based on XSS or other technologies relying on
1919
execution of malicious code on the visitors browsers;

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ be ``authenticate``:
911911

912912
.. code-block:: html+twig
913913

914-
{# templates/security/login.html.twig #}
914+
{# templates/login/index.html.twig #}
915915

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

0 commit comments

Comments
 (0)