Skip to content

Commit c78dae8

Browse files
tirkarthiJulienPalard
authored andcommitted
bpo-35603: Add a note on difflib table header interpreted as HTML (GH-11439)
1 parent 2d7caca commit c78dae8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/difflib.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
127127
the next difference highlight at the top of the browser without any leading
128128
context).
129129

130+
.. note::
131+
*fromdesc* and *todesc* are interpreted as unescaped HTML and should be
132+
properly escaped while receiving input from untrusted sources.
133+
130134
.. versionchanged:: 3.5
131135
*charset* keyword-only argument was added. The default charset of
132136
HTML document changed from ``'ISO-8859-1'`` to ``'utf-8'``.

0 commit comments

Comments
 (0)