Skip to content

Commit 370b3d9

Browse files
tristan-lgOskarStark
authored andcommitted
Apply suggestions from code review
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
1 parent 7011d17 commit 370b3d9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

html_sanitizer.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -931,12 +931,11 @@ the HTML sanitizer: ``src``, ``href``, ``lowsrc``, ``background`` and ``ping``.
931931
->allowRelativeMedias()
932932
);
933933
934-
Configure Max input length
935-
~~~~~~~~~~~~~~~~~~~~~~~~~~
934+
Max Input Length
935+
~~~~~~~~~~~~~~~~
936936

937937
To prevent DoS attacks, the HTML sanitizer limits the input length to ``20000`` by default.
938-
Using this option, you can change the max input length.
939-
Inputs longer than this value will be truncated.
938+
Using this option, you can change the max input length, Inputs longer than this value will be truncated.
940939

941940
.. configuration-block::
942941

@@ -950,8 +949,7 @@ Inputs longer than this value will be truncated.
950949
# ...
951950
952951
# specifies the max input length. Inputs longer than this value will be
953-
# truncated (default: 20000)
954-
max_input_length: 20000
952+
max_input_length: 30000 # default: 20000
955953
956954
.. code-block:: xml
957955

0 commit comments

Comments
 (0)