Skip to content
Permalink
Browse files

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

…-11439)

(cherry picked from commit c78dae8)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
  • Loading branch information...
miss-islington and tirkarthi committed Sep 11, 2019
1 parent e3bd941 commit 44e36e80456dabaeb59c6e2a93e0c1322bfeb179
Showing with 4 additions and 0 deletions.
  1. +4 −0 Doc/library/difflib.rst
@@ -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
context).

.. note::
*fromdesc* and *todesc* are interpreted as unescaped HTML and should be
properly escaped while receiving input from untrusted sources.

.. versionchanged:: 3.5
*charset* keyword-only argument was added. The default charset of
HTML document changed from ``'ISO-8859-1'`` to ``'utf-8'``.

0 comments on commit 44e36e8

Please sign in to comment.
You can’t perform that action at this time.