bpo-35603: Add a note on difflib table header interpreted as HTML (GH-11439)

(cherry picked from commit c78dae8d2b)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-09-11 05:24:55 -07:00 committed by GitHub
parent e3bd941e4e
commit 44e36e8045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,10 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
the next difference highlight at the top of the browser without any leading the next difference highlight at the top of the browser without any leading
context). context).
.. note::
*fromdesc* and *todesc* are interpreted as unescaped HTML and should be
properly escaped while receiving input from untrusted sources.
.. versionchanged:: 3.5 .. versionchanged:: 3.5
*charset* keyword-only argument was added. The default charset of *charset* keyword-only argument was added. The default charset of
HTML document changed from ``'ISO-8859-1'`` to ``'utf-8'``. HTML document changed from ``'ISO-8859-1'`` to ``'utf-8'``.