Correct the actual unescaped character

`»` should be unescaped to `»` after `striptags`.

Ref: https://flask.palletsprojects.com/en/2.0.x/api/#flask.Markup.striptags
This commit is contained in:
Chenwei Xiao 2021-11-07 10:09:37 +08:00 committed by Chanvin Xiao
parent 7a5aa570c0
commit a2e79eefc9
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ Here is a basic introduction to how the :class:`~markupsafe.Markup` class works:
>>> Markup.escape('<blink>hacker</blink>')
Markup('&lt;blink&gt;hacker&lt;/blink&gt;')
>>> Markup('<em>Marked up</em> &raquo; HTML').striptags()
'Marked up \xbb HTML'
'Marked up » HTML'
.. versionchanged:: 0.5