Skip to content

Commit 7169759

Browse files
committed
Update more references to XSS attacks
1 parent f4b6992 commit 7169759

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

html_sanitizer.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ 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.
1616
invalid HTML). The sanitizer is targeted for two use cases:
1717

18-
* Preventing security attacks based on XSS or other technologies relying on
19-
execution of malicious code on the visitors browsers;
18+
* Preventing security attacks based on :ref:`XSS <xss-attacks>` or other technologies
19+
relying on the execution of malicious code on the visitors browsers;
2020
* Generating HTML that always respects a certain format (only certain
2121
tags, attributes, hosts, etc.) to be able to consistently style the
2222
resulting output with CSS. This also protects your application against

reference/forms/types/options/sanitize_html.rst.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sanitize_html
99

1010
When ``true``, the text input will be sanitized using the
1111
:doc:`Symfony HTML Sanitizer component </html_sanitizer>` after the form is
12-
submitted. This protects the form input against XSS, clickjacking and CSS
12+
submitted. This protects the form input against :ref:`XSS <xss-attacks>`, clickjacking and CSS
1313
injection.
1414

1515
.. note::

reference/forms/types/textarea.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Renders a ``textarea`` HTML element.
2222
.. caution::
2323

2424
When allowing users to type HTML code in the textarea (or using a
25-
WYSIWYG) editor, the application is vulnerable to XSS injection,
25+
WYSIWYG) editor, the application is vulnerable to :ref:`XSS injection <xss-attacks>`,
2626
clickjacking or CSS injection. Use the `sanitize_html`_ option to
2727
protect against these types of attacks.
2828

0 commit comments

Comments
 (0)